Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 106.1 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 242.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2244/0.2244, allocations: 44.18 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 62.66 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1136, allocations: 60.83 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003457/0.1171, allocations: 1.87 MB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.1188, allocations: 1.041 MB / 472.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.689e-05/0.1189, allocations: 0 / 472.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006283/0.1196, allocations: 190.6 kB / 473 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.1199, allocations: 127.5 kB / 473.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.1204, allocations: 206.1 kB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000316/0.1207, allocations: 275.3 kB / 473.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.1208, allocations: 33.66 kB / 473.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.121, allocations: 107.7 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.1211, allocations: 115.6 kB / 473.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.1212, allocations: 20 kB / 473.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.1213, allocations: 63.91 kB / 473.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.866e-05/0.1214, allocations: 59.83 kB / 474 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.1216, allocations: 115.4 kB / 474.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.1219, allocations: 267.4 kB / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1219, allocations: 0 / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1219, allocations: 0 / 474.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1219, allocations: 3.938 kB / 474.4 MB, free: 9.922 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0009704/0.1229, allocations: 0.6572 MB / 475 MB, free: 9.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.123, allocations: 8.031 kB / 475 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.893e-05/0.1231, allocations: 28.66 kB / 475.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.1234, allocations: 270.8 kB / 475.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.1235, allocations: 97.66 kB / 475.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.1236, allocations: 19.94 kB / 475.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.1239, allocations: 164.9 kB / 475.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1239, allocations: 0 / 475.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.1239, allocations: 4 kB / 475.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1239, allocations: 0 / 475.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.1242, allocations: 99.86 kB / 475.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008019/0.125, allocations: 0.6024 MB / 476.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.1254, allocations: 175.9 kB / 476.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1256, allocations: 90.53 kB / 476.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1256, allocations: 4 kB / 476.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004538/0.1261, allocations: 444.7 kB / 477 MB, free: 6.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.512e-06/0.1261, allocations: 0 / 477 MB, free: 6.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008256/0.1269, allocations: 438.3 kB / 477.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.127, allocations: 217.6 kB / 477.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.1274, allocations: 320.9 kB / 478 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.1274, allocations: 37.7 kB / 478 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1275, allocations: 132.7 kB / 478.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.1276, allocations: 51.34 kB / 478.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.091e-05/0.1277, allocations: 49.7 kB / 478.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1278, allocations: 334.8 kB / 478.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.1279, allocations: 63.91 kB / 478.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.1281, allocations: 143.8 kB / 478.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.1285, allocations: 359 kB / 479.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1286, allocations: 0 / 479.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005213/0.1291, allocations: 350.1 kB / 479.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.541e-05/0.1292, allocations: 105 kB / 479.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.1292, allocations: 4 kB / 479.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1292, allocations: 0 / 479.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1293, allocations: 20.17 kB / 479.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.1293, allocations: 7.938 kB / 479.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1295, allocations: 19.94 kB / 479.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.1295, allocations: 16.2 kB / 479.6 MB, free: 4.102 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.1297, allocations: 261.5 kB / 479.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.474e-05/0.1298, allocations: 35.56 kB / 479.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.385e-05/0.1299, allocations: 25.7 kB / 479.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1299, allocations: 7.938 kB / 479.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1299, allocations: 0 / 479.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.1299, allocations: 7.984 kB / 480 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.1302, allocations: 289.4 kB / 480.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1302, allocations: 4 kB / 480.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-05/0.1302, allocations: 11.94 kB / 480.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1302, allocations: 4 kB / 480.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.1303, allocations: 11.98 kB / 480.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1303, allocations: 0 / 480.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1303, allocations: 0 / 480.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006235/0.1309, allocations: 451.3 kB / 480.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.131, allocations: 108.8 kB / 480.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.131, allocations: 8 kB / 480.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1312, allocations: 19.98 kB / 480.8 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.1312, allocations: 15.98 kB / 480.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.1313, allocations: 15.98 kB / 480.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.1315, allocations: 228.5 kB / 481.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1315, allocations: 0 / 481.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1318, allocations: 71.92 kB / 481.2 MB, free: 2.418 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009891/0.1328, allocations: 429.8 kB / 481.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005678/0.1334, allocations: 405.9 kB / 482 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1334, allocations: 448 / 482 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004729/0.1339, allocations: 346.1 kB / 482.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1343, allocations: 52.33 kB / 482.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008127/0.1351, allocations: 487 kB / 482.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.1355, allocations: 0.7518 MB / 483.6 MB, free: 0 / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.24e-05/0.1356, allocations: 19.44 kB / 483.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1356, allocations: 4 kB / 483.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Templates: time 0.006028/0.1416, allocations: 3.513 MB / 487.1 MB, free: 12.47 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches