Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 194 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.1 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.0007544, allocations: 111.5 kB / 296.1 MB, free: 6.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.294/0.294, allocations: 44.82 MB / 392.9 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003133, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2878, allocations: 62.95 MB / 0.5165 GB, free: 37.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09931/0.3872, allocations: 91.97 MB / 0.6063 GB, free: 13.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.3874, allocations: 71.97 kB / 0.6063 GB, free: 13.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0191/0.4065, allocations: 6.967 MB / 0.6132 GB, free: 6.383 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4066, allocations: 0 / 0.6132 GB, free: 6.383 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.4066, allocations: 4 kB / 0.6132 GB, free: 6.379 MB / 426.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.0007949/0.4074, allocations: 0.6534 MB / 0.6138 GB, free: 5.648 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4075, allocations: 12.02 kB / 0.6138 GB, free: 5.637 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.024e-05/0.4076, allocations: 28.66 kB / 0.6138 GB, free: 5.609 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004397/0.408, allocations: 299.6 kB / 0.6141 GB, free: 5.277 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.26e-05/0.4081, allocations: 89.67 kB / 0.6142 GB, free: 5.172 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.4081, allocations: 20.36 kB / 0.6142 GB, free: 5.152 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.4084, allocations: 165.5 kB / 0.6144 GB, free: 4.973 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.4085, allocations: 0 / 0.6144 GB, free: 4.973 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.4085, allocations: 8 kB / 0.6144 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4085, allocations: 7.938 kB / 0.6144 GB, free: 4.957 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.4087, allocations: 99.88 kB / 0.6145 GB, free: 4.859 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007904/0.4095, allocations: 0.6297 MB / 0.6151 GB, free: 4.172 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.4099, allocations: 176.1 kB / 0.6153 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.4101, allocations: 102.7 kB / 0.6154 GB, free: 3.863 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.4101, allocations: 3.938 kB / 0.6154 GB, free: 3.859 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003985/0.4105, allocations: 442.1 kB / 0.6158 GB, free: 3.352 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.4105, allocations: 0 / 0.6158 GB, free: 3.352 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008132/0.4113, allocations: 442.3 kB / 0.6162 GB, free: 2.895 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.46e-05/0.4114, allocations: 217.6 kB / 0.6164 GB, free: 2.633 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003559/0.4118, allocations: 334.4 kB / 0.6167 GB, free: 2.297 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.4118, allocations: 37.69 kB / 0.6168 GB, free: 2.254 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.522e-05/0.4119, allocations: 140.6 kB / 0.6169 GB, free: 2.113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.412, allocations: 51.34 kB / 0.617 GB, free: 2.062 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.412, allocations: 4 kB / 0.617 GB, free: 2.059 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.4121, allocations: 334.8 kB / 0.6173 GB, free: 1.723 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.4123, allocations: 55.97 kB / 0.6173 GB, free: 1.668 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.4125, allocations: 152.6 kB / 0.6175 GB, free: 1.484 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.4129, allocations: 364.2 kB / 0.6178 GB, free: 1.062 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4129, allocations: 4 kB / 0.6178 GB, free: 1.059 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005021/0.4134, allocations: 346.2 kB / 0.6182 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.4135, allocations: 93.09 kB / 0.6183 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4135, allocations: 4 kB / 0.6183 GB, free: 0.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.4135, allocations: 7.938 kB / 0.6183 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.4136, allocations: 32.45 kB / 0.6183 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4136, allocations: 4 kB / 0.6183 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.4138, allocations: 27.89 kB / 0.6183 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.4138, allocations: 16 kB / 0.6183 GB, free: 0.4961 MB / 426.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.0002064/0.414, allocations: 265.4 kB / 0.6186 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.4141, allocations: 31.72 kB / 0.6186 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003672/0.4144, allocations: 201.1 kB / 0.6188 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4145, allocations: 7.938 kB / 0.6188 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4145, allocations: 0 / 0.6188 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4145, allocations: 7.984 kB / 0.6188 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002766/0.4148, allocations: 301.4 kB / 0.6191 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4148, allocations: 0 / 0.6191 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.518e-05/0.4148, allocations: 7.938 kB / 0.6191 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4148, allocations: 7.984 kB / 0.6191 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.4149, allocations: 12 kB / 0.6191 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4149, allocations: 7.938 kB / 0.6192 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4149, allocations: 96 / 0.6192 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006454/0.4155, allocations: 463.1 kB / 0.6196 GB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.197e-05/0.4156, allocations: 112.7 kB / 0.6197 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.4157, allocations: 16 kB / 0.6197 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.4158, allocations: 27.92 kB / 0.6197 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.4159, allocations: 15.98 kB / 0.6198 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.4159, allocations: 15.98 kB / 0.6198 GB, free: 14.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002461/0.4162, allocations: 237.9 kB / 0.62 GB, free: 14.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4162, allocations: 0 / 0.62 GB, free: 14.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003239/0.4165, allocations: 75.94 kB / 0.6201 GB, free: 14.57 MB / 442.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) * Number of clocked states: 0 () * 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.000896/0.4174, allocations: 448.8 kB / 0.6205 GB, free: 14.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000564/0.418, allocations: 397.9 kB / 0.6209 GB, free: 13.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.418, allocations: 4.438 kB / 0.6209 GB, free: 13.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.4184, allocations: 350.1 kB / 0.6212 GB, free: 13.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.4187, allocations: 56.67 kB / 0.6213 GB, free: 13.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008801/0.4196, allocations: 0.5179 MB / 0.6218 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.42, allocations: 0.7599 MB / 0.6225 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.906e-05/0.4201, allocations: 19.44 kB / 0.6225 GB, free: 12.05 MB / 442.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4201, allocations: 0 / 0.6225 GB, free: 12.05 MB / 442.7 MB Notification: Performance of Templates: time 0.005775/0.4259, allocations: 3.651 MB / 0.6261 GB, free: 8.414 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches