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.002121/0.002125, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001152/0.001151, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2908/0.2908, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004697, allocations: 16 kB / 431.4 MB, free: 20.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1183, allocations: 58.87 MB / 490.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003061/0.1214, allocations: 1.538 MB / 491.8 MB, free: 7.797 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1235, allocations: 0.8707 MB / 492.6 MB, free: 6.918 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.1237, allocations: 0 / 492.6 MB, free: 6.918 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007392/0.1244, allocations: 151.6 kB / 492.8 MB, free: 6.77 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004316/0.1249, allocations: 123.6 kB / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006483/0.1256, allocations: 131.7 kB / 493 MB, free: 6.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.1259, allocations: 163.7 kB / 493.2 MB, free: 6.359 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1261, allocations: 33.67 kB / 493.2 MB, free: 6.324 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.1263, allocations: 91.67 kB / 493.3 MB, free: 6.234 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.1265, allocations: 99.64 kB / 493.4 MB, free: 6.137 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.1265, allocations: 8 kB / 493.4 MB, free: 6.129 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.1267, allocations: 39.97 kB / 493.5 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.1269, allocations: 47.83 kB / 493.5 MB, free: 6.043 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.127, allocations: 69.56 kB / 493.6 MB, free: 5.969 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003881/0.1274, allocations: 211.7 kB / 493.8 MB, free: 5.762 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1274, allocations: 0 / 493.8 MB, free: 5.762 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1274, allocations: 0 / 493.8 MB, free: 5.762 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1274, allocations: 4 kB / 493.8 MB, free: 5.758 MB / 330.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.001184/0.1286, allocations: 0.6104 MB / 494.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1287, allocations: 8.031 kB / 494.4 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.1288, allocations: 31.67 kB / 494.4 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000501/0.1293, allocations: 265.7 kB / 494.7 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.1294, allocations: 97.11 kB / 494.8 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.1295, allocations: 16 kB / 494.8 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.13, allocations: 161 kB / 495 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.13, allocations: 0 / 495 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.1301, allocations: 4 kB / 495 MB, free: 4.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1301, allocations: 3.938 kB / 495 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000405/0.1305, allocations: 111.8 kB / 495.1 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1317, allocations: 0.6064 MB / 495.7 MB, free: 3.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005511/0.1323, allocations: 175.9 kB / 495.8 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.1324, allocations: 8 kB / 495.9 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006985/0.1331, allocations: 433.2 kB / 496.3 MB, free: 2.949 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.945e-06/0.1331, allocations: 4 kB / 496.3 MB, free: 2.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.00152/0.1347, allocations: 0.6657 MB / 496.9 MB, free: 2.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.1348, allocations: 221.6 kB / 497.2 MB, free: 1.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005522/0.1354, allocations: 313 kB / 497.5 MB, free: 1.617 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.1355, allocations: 33.7 kB / 497.5 MB, free: 1.578 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1356, allocations: 191 kB / 497.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.961e-05/0.1357, allocations: 55.34 kB / 497.7 MB, free: 1.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.1357, allocations: 4 kB / 497.7 MB, free: 1.332 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1359, allocations: 322.8 kB / 498.1 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.1362, allocations: 56.16 kB / 498.1 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.1365, allocations: 150.6 kB / 498.3 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.1369, allocations: 157.4 kB / 498.4 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1369, allocations: 4 kB / 498.4 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008528/0.1378, allocations: 330.8 kB / 498.7 MB, free: 252 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.245e-05/0.1379, allocations: 101 kB / 498.8 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1379, allocations: 8.219 kB / 498.9 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.1379, allocations: 11.98 kB / 498.9 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.1381, allocations: 20 kB / 498.9 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1382, allocations: 7.938 kB / 498.9 MB, free: 84 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.1384, allocations: 27.83 kB / 498.9 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.1385, allocations: 12 kB / 498.9 MB, free: 44 kB / 330.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.0003689/0.1388, allocations: 265.5 kB / 499.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.1389, allocations: 27.72 kB / 499.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.985e-05/0.139, allocations: 33.66 kB / 499.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.139, allocations: 0 / 499.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1391, allocations: 0 / 499.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1391, allocations: 4 kB / 499.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003886/0.1395, allocations: 293.3 kB / 499.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1395, allocations: 0 / 499.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.684e-05/0.1396, allocations: 8 kB / 499.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1396, allocations: 0 / 499.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.1396, allocations: 16 kB / 499.6 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.124e-06/0.1396, allocations: 7.938 kB / 499.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1397, allocations: 0 / 499.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.1408, allocations: 478.7 kB / 0.4883 GB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.1409, allocations: 100.8 kB / 0.4884 GB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.961e-05/0.141, allocations: 16 kB / 0.4884 GB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.1412, allocations: 15.98 kB / 0.4884 GB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.1414, allocations: 19.98 kB / 0.4885 GB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.822e-05/0.1414, allocations: 15.98 kB / 0.4885 GB, free: 14.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000392/0.1418, allocations: 232.4 kB / 0.4887 GB, free: 14.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1418, allocations: 4 kB / 0.4887 GB, free: 14.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004886/0.1423, allocations: 64 kB / 0.4888 GB, free: 14.32 MB / 346.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.001289/0.1436, allocations: 434 kB / 0.4892 GB, free: 13.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009684/0.1446, allocations: 398 kB / 0.4896 GB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1447, allocations: 0 / 0.4896 GB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000626/0.1453, allocations: 342.1 kB / 0.4899 GB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.1458, allocations: 60.14 kB / 0.4899 GB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.147, allocations: 0.4986 MB / 0.4904 GB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.1475, allocations: 0.756 MB / 0.4912 GB, free: 11.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.1476, allocations: 19.44 kB / 0.4912 GB, free: 11.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1476, allocations: 0 / 0.4912 GB, free: 11.75 MB / 346.7 MB Notification: Performance of Templates: time 0.009583/0.1572, allocations: 3.465 MB / 0.4946 GB, free: 8.285 MB / 346.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/jenkins1/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