Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.3 MB / 236 MB, free: 2.906 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008981/0.0008981, allocations: 96.05 kB / 287 MB, free: 196 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1829/0.1829, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.08e-05, allocations: 4.219 kB / 451.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1358, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.5052, allocations: 90.53 MB / 0.5901 GB, free: 14.81 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.5055, allocations: 63.97 kB / 0.5902 GB, free: 14.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.5218, allocations: 6.159 MB / 0.5962 GB, free: 8.602 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5219, allocations: 0 / 0.5962 GB, free: 8.602 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.5219, allocations: 8 kB / 0.5962 GB, free: 8.594 MB / 410.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.0007062/0.5226, allocations: 0.5865 MB / 0.5968 GB, free: 7.938 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.5227, allocations: 16.03 kB / 0.5968 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.56e-05/0.5228, allocations: 23.81 kB / 0.5968 GB, free: 7.898 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.5232, allocations: 281.6 kB / 0.5971 GB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.385e-05/0.5233, allocations: 93.11 kB / 0.5972 GB, free: 7.473 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.5233, allocations: 15.95 kB / 0.5972 GB, free: 7.457 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.5236, allocations: 160.3 kB / 0.5973 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.5236, allocations: 4 kB / 0.5973 GB, free: 7.277 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.5237, allocations: 8 kB / 0.5973 GB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5237, allocations: 0 / 0.5973 GB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001534/0.5238, allocations: 79.91 kB / 0.5974 GB, free: 7.191 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008841/0.5247, allocations: 0.6337 MB / 0.598 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.525, allocations: 160 kB / 0.5982 GB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.5251, allocations: 94.5 kB / 0.5983 GB, free: 6.215 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.5251, allocations: 0 / 0.5983 GB, free: 6.215 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003765/0.5255, allocations: 424.6 kB / 0.5987 GB, free: 5.727 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.5255, allocations: 4 kB / 0.5987 GB, free: 5.723 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005326/0.5261, allocations: 350.4 kB / 0.599 GB, free: 5.355 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.657e-05/0.5262, allocations: 225.5 kB / 0.5992 GB, free: 5.086 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/0.5265, allocations: 285 kB / 0.5995 GB, free: 4.797 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.5265, allocations: 33.7 kB / 0.5995 GB, free: 4.758 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.253e-05/0.5266, allocations: 132.6 kB / 0.5997 GB, free: 4.625 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.5267, allocations: 55.34 kB / 0.5997 GB, free: 4.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.5267, allocations: 112 / 0.5997 GB, free: 4.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5268, allocations: 350.7 kB / 0.6001 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.109e-05/0.5269, allocations: 52.17 kB / 0.6001 GB, free: 4.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.527, allocations: 134.7 kB / 0.6002 GB, free: 4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.5272, allocations: 148 kB / 0.6004 GB, free: 3.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.5272, allocations: 7.938 kB / 0.6004 GB, free: 3.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000384/0.5276, allocations: 338.3 kB / 0.6007 GB, free: 3.477 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.5277, allocations: 89.09 kB / 0.6008 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.5277, allocations: 7.984 kB / 0.6008 GB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.5277, allocations: 4 kB / 0.6008 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.5278, allocations: 23.94 kB / 0.6008 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.5278, allocations: 0 / 0.6008 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.528, allocations: 19.98 kB / 0.6008 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.528, allocations: 16 kB / 0.6009 GB, free: 3.301 MB / 410.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.0001563/0.5282, allocations: 241.1 kB / 0.6011 GB, free: 3.039 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.5282, allocations: 35.62 kB / 0.6011 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002999/0.5286, allocations: 197.1 kB / 0.6013 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5286, allocations: 4 kB / 0.6013 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.5286, allocations: 0 / 0.6013 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.5286, allocations: 3.984 kB / 0.6013 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.5288, allocations: 301.4 kB / 0.6016 GB, free: 2.441 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5289, allocations: 12 kB / 0.6016 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.365e-05/0.5289, allocations: 4 kB / 0.6016 GB, free: 2.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.5289, allocations: 4 kB / 0.6016 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.5289, allocations: 4 kB / 0.6016 GB, free: 2.418 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.5289, allocations: 12.08 kB / 0.6016 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5289, allocations: 3.938 kB / 0.6016 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.5294, allocations: 450.9 kB / 0.6021 GB, free: 1.906 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.593e-05/0.5296, allocations: 116.8 kB / 0.6022 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.5296, allocations: 12 kB / 0.6022 GB, free: 1.762 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.5297, allocations: 23.98 kB / 0.6022 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.5298, allocations: 19.97 kB / 0.6022 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.5299, allocations: 11.95 kB / 0.6022 GB, free: 1.707 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002193/0.5301, allocations: 233.3 kB / 0.6025 GB, free: 1.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5301, allocations: 0 / 0.6025 GB, free: 1.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003049/0.5304, allocations: 79.94 kB / 0.6025 GB, free: 1.402 MB / 410.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.0008247/0.5312, allocations: 404 kB / 0.6029 GB, free: 1.105 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.5317, allocations: 382.3 kB / 0.6033 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5317, allocations: 4.125 kB / 0.6033 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.532, allocations: 342.1 kB / 0.6036 GB, free: 328 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.5323, allocations: 40.41 kB / 0.6037 GB, free: 288 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005967/0.5329, allocations: 356.7 kB / 0.604 GB, free: 15.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.5332, allocations: 0.76 MB / 0.6047 GB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.913e-05/0.5333, allocations: 25.55 kB / 0.6048 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.5333, allocations: 23.42 kB / 0.6048 GB, free: 15.07 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5333, allocations: 0 / 0.6048 GB, free: 15.07 MB / 426.7 MB Notification: Performance of Templates: time 0.006307/0.5397, allocations: 3.273 MB / 0.608 GB, free: 11.81 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches