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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 182.9 kB / 13.19 MB, free: 2.129 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.348/1.348, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0007852/0.0007852, allocations: 84.36 kB / 267 MB, free: 9.281 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.3463/0.3463, allocations: 43.46 MB / 358.6 MB, free: 51.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.232e-05, allocations: 4 kB / 425.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 58.85 MB / 484.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.4867, allocations: 88.99 MB / 0.5597 GB, free: 15.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.487, allocations: 65.36 kB / 0.5598 GB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01532/0.5023, allocations: 6.003 MB / 0.5656 GB, free: 11.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5024, allocations: 3.938 kB / 0.5656 GB, free: 11.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.5024, allocations: 4 kB / 0.5656 GB, free: 11.57 MB / 394.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.0006446/0.503, allocations: 0.5922 MB / 0.5662 GB, free: 10.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5031, allocations: 8.031 kB / 0.5662 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.549e-05/0.5032, allocations: 35.16 kB / 0.5663 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.5036, allocations: 280.8 kB / 0.5665 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.989e-05/0.5037, allocations: 93.03 kB / 0.5666 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.5037, allocations: 15.94 kB / 0.5666 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.5039, allocations: 151.6 kB / 0.5668 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.504, allocations: 0 / 0.5668 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.504, allocations: 8 kB / 0.5668 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.504, allocations: 5.375 kB / 0.5668 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.5041, allocations: 89.19 kB / 0.5669 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006954/0.5048, allocations: 0.6206 MB / 0.5675 GB, free: 9.668 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.5051, allocations: 173.4 kB / 0.5676 GB, free: 9.512 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.5052, allocations: 85.7 kB / 0.5677 GB, free: 9.445 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.5052, allocations: 4 kB / 0.5677 GB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.5055, allocations: 423.9 kB / 0.5681 GB, free: 8.992 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.5055, allocations: 0 / 0.5681 GB, free: 8.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004785/0.506, allocations: 352.1 kB / 0.5685 GB, free: 8.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.5061, allocations: 221.4 kB / 0.5687 GB, free: 8.418 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.5063, allocations: 286.8 kB / 0.569 GB, free: 8.184 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.5064, allocations: 33.64 kB / 0.569 GB, free: 8.148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.5064, allocations: 139 kB / 0.5691 GB, free: 8.043 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.5065, allocations: 47.06 kB / 0.5692 GB, free: 8.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.5065, allocations: 4 kB / 0.5692 GB, free: 8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.5066, allocations: 334.2 kB / 0.5695 GB, free: 7.676 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.835e-05/0.5066, allocations: 55.19 kB / 0.5695 GB, free: 7.641 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.5068, allocations: 145.6 kB / 0.5697 GB, free: 7.488 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.5069, allocations: 145.3 kB / 0.5698 GB, free: 7.348 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.5069, allocations: 0 / 0.5698 GB, free: 7.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003136/0.5072, allocations: 335.4 kB / 0.5701 GB, free: 7.047 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.5073, allocations: 100.8 kB / 0.5702 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.5073, allocations: 4 kB / 0.5702 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.5073, allocations: 4 kB / 0.5702 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.98e-05/0.5074, allocations: 23.92 kB / 0.5703 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5074, allocations: 11.89 kB / 0.5703 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.5075, allocations: 25.11 kB / 0.5703 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.5076, allocations: 8 kB / 0.5703 GB, free: 6.863 MB / 394.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 () * 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.0001104/0.5077, allocations: 232.2 kB / 0.5705 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.5077, allocations: 35.66 kB / 0.5706 GB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.508, allocations: 203.4 kB / 0.5708 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.508, allocations: 0 / 0.5708 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.508, allocations: 4 kB / 0.5708 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.508, allocations: 3.953 kB / 0.5708 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.5082, allocations: 295.6 kB / 0.571 GB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5082, allocations: 0 / 0.571 GB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.409e-05/0.5083, allocations: 15.92 kB / 0.5711 GB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.5083, allocations: 4 kB / 0.5711 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.5083, allocations: 11.81 kB / 0.5711 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.5083, allocations: 1.312 kB / 0.5711 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5083, allocations: 4 kB / 0.5711 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/0.5087, allocations: 456.8 kB / 0.5715 GB, free: 5.648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.5088, allocations: 112.1 kB / 0.5716 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.5088, allocations: 11 kB / 0.5716 GB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.509, allocations: 23.94 kB / 0.5717 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/0.5091, allocations: 22.17 kB / 0.5717 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.5091, allocations: 15.23 kB / 0.5717 GB, free: 5.465 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001768/0.5093, allocations: 226.6 kB / 0.5719 GB, free: 5.289 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5093, allocations: 4 kB / 0.5719 GB, free: 5.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.5096, allocations: 76.67 kB / 0.572 GB, free: 5.219 MB / 394.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * 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.0008166/0.5104, allocations: 403.8 kB / 0.5724 GB, free: 4.895 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003674/0.5108, allocations: 392.3 kB / 0.5727 GB, free: 4.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5108, allocations: 448 / 0.5727 GB, free: 4.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.511, allocations: 338 kB / 0.5731 GB, free: 4.258 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.5113, allocations: 44.97 kB / 0.5731 GB, free: 4.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005589/0.5119, allocations: 363.4 kB / 0.5735 GB, free: 3.898 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.512, allocations: 0.7551 MB / 0.5742 GB, free: 3.125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.045e-05/0.5121, allocations: 29.53 kB / 0.5742 GB, free: 3.098 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.5122, allocations: 19.62 kB / 0.5742 GB, free: 3.078 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5122, allocations: 0 / 0.5742 GB, free: 3.078 MB / 394.7 MB Notification: Performance of Templates: time 0.005837/0.518, allocations: 3.275 MB / 0.5774 GB, free: 15.82 MB / 410.7 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 -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/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_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches