Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009376/0.0009376, allocations: 92.12 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 198.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2349/0.2349, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003169, allocations: 8 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1389, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002633/0.1416, allocations: 1.616 MB / 484.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.1439, allocations: 1.16 MB / 485.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.1441, allocations: 0 / 485.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000743/0.1448, allocations: 179.6 kB / 486 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.1452, allocations: 147.5 kB / 486.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.1457, allocations: 139.8 kB / 486.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.146, allocations: 271.3 kB / 486.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1461, allocations: 21.67 kB / 486.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.1463, allocations: 95.67 kB / 486.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.1465, allocations: 111.5 kB / 486.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1465, allocations: 8 kB / 486.8 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.1467, allocations: 51.97 kB / 486.9 MB, free: 368 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.1468, allocations: 59.75 kB / 486.9 MB, free: 308 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1469, allocations: 129.2 kB / 487 MB, free: 172 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003805/0.1473, allocations: 275.2 kB / 487.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1473, allocations: 0 / 487.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1473, allocations: 0 / 487.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1473, allocations: 0 / 487.3 MB, free: 15.9 MB / 366.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.0009755/0.1483, allocations: 0.6184 MB / 487.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1483, allocations: 17.89 kB / 487.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/0.1484, allocations: 32.64 kB / 488 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.1489, allocations: 279.5 kB / 488.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.1491, allocations: 97.66 kB / 488.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.1492, allocations: 19.94 kB / 488.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.1495, allocations: 157 kB / 488.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1496, allocations: 0 / 488.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.1496, allocations: 4 kB / 488.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.1496, allocations: 0 / 488.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.1499, allocations: 95.88 kB / 488.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009775/0.1508, allocations: 0.618 MB / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.1513, allocations: 183.9 kB / 489.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.1515, allocations: 90.55 kB / 489.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1515, allocations: 4 kB / 489.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005763/0.1521, allocations: 441 kB / 489.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.335e-06/0.1521, allocations: 0 / 489.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009164/0.1531, allocations: 450.3 kB / 490.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.1532, allocations: 213.6 kB / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.1536, allocations: 330.6 kB / 490.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.1537, allocations: 37.64 kB / 490.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1538, allocations: 136.6 kB / 491.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.1539, allocations: 51.34 kB / 491.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.331e-05/0.154, allocations: 33.7 kB / 491.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1541, allocations: 342.8 kB / 491.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1543, allocations: 55.97 kB / 491.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.1546, allocations: 142.8 kB / 491.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.1552, allocations: 366.9 kB / 492 MB, free: 10.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1552, allocations: 0 / 492 MB, free: 10.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007028/0.1559, allocations: 354.7 kB / 492.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.156, allocations: 101 kB / 492.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.156, allocations: 4 kB / 492.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.156, allocations: 4 kB / 492.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.1562, allocations: 23.92 kB / 492.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.1562, allocations: 4 kB / 492.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.1563, allocations: 31.83 kB / 492.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1564, allocations: 12.06 kB / 492.6 MB, free: 10.06 MB / 366.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.000256/0.1566, allocations: 269.7 kB / 492.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.1567, allocations: 35.66 kB / 492.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.197e-05/0.1568, allocations: 25.7 kB / 492.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.1568, allocations: 4 kB / 492.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.1568, allocations: 0 / 492.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1568, allocations: 0 / 492.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.1571, allocations: 293.4 kB / 493.2 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1571, allocations: 4 kB / 493.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-05/0.1572, allocations: 11.94 kB / 493.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.1572, allocations: 7.938 kB / 493.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.1572, allocations: 8 kB / 493.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1572, allocations: 3.984 kB / 493.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1572, allocations: 0 / 493.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006678/0.1579, allocations: 451.4 kB / 493.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.733e-05/0.158, allocations: 108.8 kB / 493.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.1581, allocations: 12 kB / 493.8 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.1582, allocations: 19.98 kB / 493.8 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.947e-05/0.1583, allocations: 15.98 kB / 493.8 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.1583, allocations: 15.98 kB / 493.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.1586, allocations: 245.9 kB / 494.1 MB, free: 8.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1586, allocations: 0 / 494.1 MB, free: 8.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003429/0.1589, allocations: 67.84 kB / 494.1 MB, free: 8.363 MB / 366.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.00114/0.1601, allocations: 438.7 kB / 494.6 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.1608, allocations: 390 kB / 494.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1608, allocations: 4 kB / 495 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.1612, allocations: 346.2 kB / 495.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.1617, allocations: 52.47 kB / 495.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009247/0.1626, allocations: 0.5088 MB / 495.8 MB, free: 6.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005116/0.1631, allocations: 0.7482 MB / 496.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.1632, allocations: 25.55 kB / 496.6 MB, free: 5.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.1633, allocations: 19.44 kB / 496.6 MB, free: 5.855 MB / 366.1 MB Notification: Performance of SimCode: time 1.704e-06/0.1633, allocations: 0 / 496.6 MB, free: 5.855 MB / 366.1 MB Notification: Performance of Templates: time 0.007595/0.1709, allocations: 3.196 MB / 499.8 MB, free: 2.68 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches