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.001178/0.001178, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.4 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2324/0.2324, allocations: 46.11 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001552, allocations: 72.5 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1303, allocations: 62.45 MB / 480.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004092/0.1345, allocations: 1.908 MB / 482.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1367, allocations: 1.177 MB / 483.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.1369, allocations: 7.938 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007638/0.1377, allocations: 187.4 kB / 484 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005274/0.1382, allocations: 171.2 kB / 484.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.1387, allocations: 163.6 kB / 484.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004295/0.1392, allocations: 291.3 kB / 484.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.1393, allocations: 25.67 kB / 484.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.1395, allocations: 115.7 kB / 484.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.1397, allocations: 115.6 kB / 484.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/0.1398, allocations: 16 kB / 484.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.14, allocations: 63.91 kB / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.206e-05/0.1401, allocations: 63.77 kB / 485 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.1402, allocations: 119.4 kB / 485.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004245/0.1407, allocations: 279.4 kB / 485.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1407, allocations: 0 / 485.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.1407, allocations: 3.984 kB / 485.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.1407, allocations: 4 kB / 485.4 MB, free: 0.6094 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.00121/0.1419, allocations: 0.6533 MB / 486 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.142, allocations: 9.109 kB / 486 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1421, allocations: 28.66 kB / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.1425, allocations: 291.5 kB / 486.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/0.1426, allocations: 89.67 kB / 486.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.1427, allocations: 19.92 kB / 486.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.143, allocations: 167.5 kB / 486.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1431, allocations: 0 / 486.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.1431, allocations: 8 kB / 486.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.1431, allocations: 0 / 486.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.1433, allocations: 91.88 kB / 486.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009073/0.1443, allocations: 0.6025 MB / 487.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.1446, allocations: 175.9 kB / 487.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.1448, allocations: 94.53 kB / 487.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.1448, allocations: 7.984 kB / 487.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004904/0.1453, allocations: 433 kB / 488 MB, free: 13.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.456e-06/0.1454, allocations: 3.984 kB / 488 MB, free: 13.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000853/0.1462, allocations: 446.3 kB / 488.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.1463, allocations: 209.6 kB / 488.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.1467, allocations: 334.5 kB / 489 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1468, allocations: 33.7 kB / 489 MB, free: 12.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1469, allocations: 136.7 kB / 489.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.1469, allocations: 51.36 kB / 489.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.545e-05/0.147, allocations: 49.69 kB / 489.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1472, allocations: 338.8 kB / 489.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.1473, allocations: 51.97 kB / 489.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.1476, allocations: 154.5 kB / 489.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.148, allocations: 362.9 kB / 490.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.148, allocations: 4 kB / 490.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005485/0.1485, allocations: 350.1 kB / 490.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.958e-05/0.1486, allocations: 97.09 kB / 490.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.1487, allocations: 0 / 490.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1487, allocations: 4 kB / 490.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.1488, allocations: 27.92 kB / 490.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.1488, allocations: 4 kB / 490.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.149, allocations: 24.14 kB / 490.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.149, allocations: 16 kB / 490.6 MB, free: 10.75 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.0002462/0.1492, allocations: 265.4 kB / 490.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.1493, allocations: 35.56 kB / 490.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.1494, allocations: 29.7 kB / 491 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1494, allocations: 0 / 491 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1494, allocations: 0 / 491 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1494, allocations: 4 kB / 491 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.1497, allocations: 293.5 kB / 491.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1497, allocations: 7.938 kB / 491.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.193e-05/0.1498, allocations: 11.88 kB / 491.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.1498, allocations: 0 / 491.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.1498, allocations: 8 kB / 491.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1498, allocations: 3.984 kB / 491.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1498, allocations: 4 kB / 491.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.1505, allocations: 438.5 kB / 491.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.227e-05/0.1506, allocations: 108.8 kB / 491.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.1506, allocations: 12 kB / 491.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.1508, allocations: 19.98 kB / 491.9 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-05/0.1508, allocations: 19.92 kB / 491.9 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.1509, allocations: 16 kB / 491.9 MB, free: 9.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002533/0.1511, allocations: 245.9 kB / 492.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1511, allocations: 0 / 492.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.1515, allocations: 75.83 kB / 492.2 MB, free: 9.055 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.001022/0.1525, allocations: 416.9 kB / 492.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005944/0.1531, allocations: 394.2 kB / 493 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1531, allocations: 4.125 kB / 493 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.1535, allocations: 346.3 kB / 493.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.1539, allocations: 62.73 kB / 493.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008679/0.1548, allocations: 495.1 kB / 493.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.1551, allocations: 0.7518 MB / 494.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.215e-05/0.1552, allocations: 23.44 kB / 494.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1552, allocations: 0 / 494.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of Templates: time 0.006867/0.1621, allocations: 3.573 MB / 498.2 MB, free: 3.031 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/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_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches