Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 112.6 kB / 17.04 MB, free: 6.074 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.001473/0.001473, allocations: 195 kB / 17.97 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2346/0.2346, allocations: 43.52 MB / 314.7 MB, free: 492 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 70.73 kB / 384.2 MB, free: 56.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1328, allocations: 57.78 MB / 442 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003156/0.136, allocations: 1.88 MB / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1374, allocations: 0.9558 MB / 444.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1375, allocations: 0 / 444.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006874/0.1382, allocations: 191.5 kB / 445 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.1385, allocations: 123.5 kB / 445.1 MB, free: 3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003763/0.1389, allocations: 179.2 kB / 445.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.1392, allocations: 275.3 kB / 445.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.1393, allocations: 33.67 kB / 445.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1395, allocations: 107.7 kB / 445.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.1396, allocations: 115.5 kB / 445.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.1397, allocations: 24 kB / 445.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1398, allocations: 67.95 kB / 445.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-05/0.1399, allocations: 55.83 kB / 445.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.14, allocations: 115.4 kB / 446.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.1404, allocations: 275.1 kB / 446.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1404, allocations: 0 / 446.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1404, allocations: 0 / 446.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1404, allocations: 0 / 446.3 MB, free: 1.777 MB / 318.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.0008455/0.1413, allocations: 0.6611 MB / 447 MB, free: 1.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1413, allocations: 11.89 kB / 447 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.903e-05/0.1414, allocations: 28.66 kB / 447 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.1417, allocations: 282.6 kB / 447.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.291e-05/0.1418, allocations: 93.67 kB / 447.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.1418, allocations: 19.92 kB / 447.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.1421, allocations: 165 kB / 447.6 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1421, allocations: 3.938 kB / 447.6 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.1421, allocations: 8 kB / 447.6 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1421, allocations: 0 / 447.6 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.1423, allocations: 87.88 kB / 447.7 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007605/0.1431, allocations: 0.6025 MB / 448.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1434, allocations: 179.9 kB / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.1436, allocations: 90.55 kB / 448.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.1436, allocations: 7.984 kB / 448.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004615/0.1441, allocations: 435.1 kB / 449 MB, free: 14.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.627e-06/0.1441, allocations: 0 / 449 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008156/0.1449, allocations: 442.2 kB / 449.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.1451, allocations: 221.6 kB / 449.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.1454, allocations: 309 kB / 449.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.1455, allocations: 37.7 kB / 450 MB, free: 13.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/0.1456, allocations: 136.5 kB / 450.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.1456, allocations: 59.34 kB / 450.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.1457, allocations: 49.7 kB / 450.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1459, allocations: 338.8 kB / 450.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.146, allocations: 52.34 kB / 450.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.1462, allocations: 146.2 kB / 450.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.1466, allocations: 362.7 kB / 451.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1466, allocations: 0 / 451.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004954/0.1471, allocations: 346.4 kB / 451.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.236e-05/0.1472, allocations: 101.1 kB / 451.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1472, allocations: 0 / 451.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1472, allocations: 4 kB / 451.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.1473, allocations: 27.86 kB / 451.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1473, allocations: 4 kB / 451.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.1475, allocations: 23.89 kB / 451.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.1475, allocations: 12 kB / 451.6 MB, free: 11.95 MB / 334.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.0002091/0.1477, allocations: 277.3 kB / 451.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.1478, allocations: 31.66 kB / 451.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.671e-05/0.1478, allocations: 25.7 kB / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1479, allocations: 4 kB / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1479, allocations: 0 / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1479, allocations: 0 / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.1481, allocations: 293.4 kB / 452.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1481, allocations: 4 kB / 452.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.094e-05/0.1482, allocations: 11.88 kB / 452.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1482, allocations: 0 / 452.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.1482, allocations: 12 kB / 452.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1482, allocations: 7.938 kB / 452.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1482, allocations: 4.172 kB / 452.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006372/0.1489, allocations: 435.5 kB / 452.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.149, allocations: 112.7 kB / 452.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.149, allocations: 16 kB / 452.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.1492, allocations: 15.98 kB / 452.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.1492, allocations: 19.92 kB / 452.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.1493, allocations: 19.94 kB / 452.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.1495, allocations: 232.4 kB / 453.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1495, allocations: 0 / 453.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.1498, allocations: 60 kB / 453.1 MB, free: 10.26 MB / 334.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.001036/0.1509, allocations: 437.2 kB / 453.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005622/0.1514, allocations: 401.9 kB / 454 MB, free: 9.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1515, allocations: 0 / 454 MB, free: 9.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.1518, allocations: 342.1 kB / 454.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.1522, allocations: 57.81 kB / 454.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007785/0.153, allocations: 449.4 kB / 454.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.1533, allocations: 0.7518 MB / 455.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.948e-05/0.1534, allocations: 29.48 kB / 455.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.1535, allocations: 23.42 kB / 455.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1535, allocations: 0 / 455.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of Templates: time 0.007544/0.161, allocations: 3.445 MB / 459 MB, free: 4.32 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches