Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00186/0.001861, allocations: 178 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.853/1.853, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 82.34 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4016/0.4016, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004012/0.0004013, allocations: 8 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 58.86 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002416/0.1348, allocations: 1.557 MB / 491.8 MB, free: 9.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.1363, allocations: 0.8825 MB / 492.7 MB, free: 8.539 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1364, allocations: 7.938 kB / 492.7 MB, free: 8.531 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006216/0.137, allocations: 159.6 kB / 492.8 MB, free: 8.375 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.1373, allocations: 123.6 kB / 493 MB, free: 8.254 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1377, allocations: 135.8 kB / 493.1 MB, free: 8.121 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.138, allocations: 235.4 kB / 493.3 MB, free: 7.891 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1381, allocations: 29.64 kB / 493.4 MB, free: 7.863 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.1383, allocations: 91.62 kB / 493.4 MB, free: 7.773 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1384, allocations: 111.6 kB / 493.5 MB, free: 7.664 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.11e-05/0.1385, allocations: 8 kB / 493.6 MB, free: 7.656 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1386, allocations: 39.98 kB / 493.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.1387, allocations: 55.81 kB / 493.7 MB, free: 7.562 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.335e-05/0.1388, allocations: 69.58 kB / 493.7 MB, free: 7.488 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.139, allocations: 211.7 kB / 493.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.139, allocations: 0 / 493.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1391, allocations: 0 / 493.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1391, allocations: 4 kB / 493.9 MB, free: 7.277 MB / 378.7 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.0009377/0.14, allocations: 0.622 MB / 494.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1401, allocations: 8.031 kB / 494.6 MB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.518e-05/0.1401, allocations: 31.72 kB / 494.6 MB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.1405, allocations: 261.7 kB / 494.8 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.1406, allocations: 97.02 kB / 494.9 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.1407, allocations: 16 kB / 495 MB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.141, allocations: 165.5 kB / 495.1 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.141, allocations: 0 / 495.1 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.53e-05/0.1411, allocations: 15.89 kB / 495.1 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1411, allocations: 0 / 495.1 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.1413, allocations: 95.86 kB / 495.2 MB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008781/0.1422, allocations: 0.6141 MB / 495.8 MB, free: 5.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.1426, allocations: 187.9 kB / 496 MB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.1428, allocations: 86.55 kB / 496.1 MB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.1428, allocations: 4 kB / 496.1 MB, free: 4.852 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004668/0.1433, allocations: 433.1 kB / 496.5 MB, free: 4.352 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.1433, allocations: 0 / 496.5 MB, free: 4.352 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008405/0.1442, allocations: 450.3 kB / 497 MB, free: 3.887 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.1443, allocations: 217.6 kB / 497.2 MB, free: 3.625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.1447, allocations: 312.9 kB / 497.5 MB, free: 3.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.1447, allocations: 37.7 kB / 497.5 MB, free: 3.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1448, allocations: 132.6 kB / 497.7 MB, free: 3.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.1449, allocations: 51.36 kB / 497.7 MB, free: 3.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.1449, allocations: 8 kB / 497.7 MB, free: 3.078 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.145, allocations: 342.8 kB / 498.1 MB, free: 2.734 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.1452, allocations: 60.09 kB / 498.1 MB, free: 2.676 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1454, allocations: 146.6 kB / 498.3 MB, free: 2.496 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.1456, allocations: 149.1 kB / 498.4 MB, free: 2.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1456, allocations: 3.938 kB / 498.4 MB, free: 2.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005522/0.1462, allocations: 350.2 kB / 498.7 MB, free: 1.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-05/0.1463, allocations: 93.09 kB / 498.8 MB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.1463, allocations: 4 kB / 498.8 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1463, allocations: 224 / 498.8 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1464, allocations: 32.3 kB / 498.9 MB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.1464, allocations: 4 kB / 498.9 MB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1466, allocations: 27.83 kB / 498.9 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.1466, allocations: 20 kB / 498.9 MB, free: 1.766 MB / 378.7 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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.1469, allocations: 269.4 kB / 499.2 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.1469, allocations: 35.67 kB / 499.2 MB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.835e-05/0.147, allocations: 25.7 kB / 499.2 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.147, allocations: 4 kB / 499.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.147, allocations: 0 / 499.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.147, allocations: 0 / 499.3 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.1473, allocations: 289.4 kB / 499.5 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1473, allocations: 0 / 499.5 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.778e-05/0.1473, allocations: 4 kB / 499.5 MB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-05/0.1474, allocations: 7.953 kB / 499.5 MB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1474, allocations: 8 kB / 499.6 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1474, allocations: 4 kB / 499.6 MB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1474, allocations: 4.188 kB / 499.6 MB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006246/0.148, allocations: 447.4 kB / 500 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.569e-05/0.1481, allocations: 108.8 kB / 0.4884 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.1482, allocations: 15.95 kB / 0.4884 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1483, allocations: 23.98 kB / 0.4884 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.1484, allocations: 15.98 kB / 0.4884 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.1484, allocations: 12 kB / 0.4884 GB, free: 388 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.1487, allocations: 232.4 kB / 0.4887 GB, free: 152 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1487, allocations: 0 / 0.4887 GB, free: 152 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002931/0.149, allocations: 71.89 kB / 0.4887 GB, free: 80 kB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1927/0.3417, allocations: 427.5 kB / 0.4891 GB, free: 43.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000746/0.3425, allocations: 395.3 kB / 0.4895 GB, free: 43.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.3425, allocations: 2.953 kB / 0.4895 GB, free: 43.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003554/0.3429, allocations: 350 kB / 0.4899 GB, free: 43.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.3433, allocations: 51.27 kB / 0.4899 GB, free: 43.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008726/0.3442, allocations: 0.5045 MB / 0.4904 GB, free: 42.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.3444, allocations: 0.7487 MB / 0.4911 GB, free: 42.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.111e-05/0.3445, allocations: 22.22 kB / 0.4912 GB, free: 42.09 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3445, allocations: 1 kB / 0.4912 GB, free: 42.09 MB / 378.7 MB Notification: Performance of Templates: time 0.006577/0.3511, allocations: 3.48 MB / 0.4946 GB, free: 41.74 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches