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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 114.4 kB / 17.78 MB, free: 5.289 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.001231/0.001231, allocations: 187 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2212/0.2212, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4666/0.4678, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00432/0.4722, allocations: 1.895 MB / 0.5207 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.4741, allocations: 1.03 MB / 0.5217 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.4742, allocations: 5.062 kB / 0.5217 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009356/0.4752, allocations: 179.7 kB / 0.5219 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.4756, allocations: 129.2 kB / 0.522 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006428/0.4762, allocations: 201 kB / 0.5222 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005039/0.4767, allocations: 274.1 kB / 0.5225 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.4769, allocations: 36.55 kB / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.4772, allocations: 107.7 kB / 0.5226 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.4774, allocations: 120.5 kB / 0.5227 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.4774, allocations: 17.59 kB / 0.5228 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.4776, allocations: 59.06 kB / 0.5228 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.4778, allocations: 62.31 kB / 0.5229 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.4779, allocations: 110.3 kB / 0.523 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.4784, allocations: 279.7 kB / 0.5233 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4784, allocations: 4 kB / 0.5233 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4784, allocations: 0.7031 kB / 0.5233 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.4784, allocations: 1.625 kB / 0.5233 GB, free: 0.8945 MB / 382.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.001001/0.4794, allocations: 0.6605 MB / 0.5239 GB, free: 288 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/0.4795, allocations: 9.562 kB / 0.5239 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.4796, allocations: 29.03 kB / 0.5239 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.48, allocations: 277.4 kB / 0.5242 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.4801, allocations: 97.72 kB / 0.5243 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.4802, allocations: 19.69 kB / 0.5243 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.4806, allocations: 158.5 kB / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.4806, allocations: 0 / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.4806, allocations: 5.391 kB / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.4807, allocations: 2.375 kB / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.4809, allocations: 97.05 kB / 0.5246 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009274/0.4819, allocations: 0.6046 MB / 0.5252 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.4823, allocations: 175.1 kB / 0.5253 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.4825, allocations: 96.62 kB / 0.5254 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.4825, allocations: 2.172 kB / 0.5254 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004971/0.483, allocations: 431 kB / 0.5258 GB, free: 14.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.483, allocations: 0 / 0.5258 GB, free: 14.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009325/0.484, allocations: 447.3 kB / 0.5263 GB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.4841, allocations: 218.5 kB / 0.5265 GB, free: 14.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.4845, allocations: 320.9 kB / 0.5268 GB, free: 14.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.4846, allocations: 31.2 kB / 0.5268 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.4847, allocations: 132.7 kB / 0.5269 GB, free: 13.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.4848, allocations: 52.36 kB / 0.527 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.4848, allocations: 48.5 kB / 0.527 GB, free: 13.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.4851, allocations: 342 kB / 0.5274 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.4852, allocations: 54.59 kB / 0.5274 GB, free: 13.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.4855, allocations: 145.1 kB / 0.5275 GB, free: 13.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.4859, allocations: 359.2 kB / 0.5279 GB, free: 13.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.4859, allocations: 1.438 kB / 0.5279 GB, free: 13.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005986/0.4865, allocations: 347 kB / 0.5282 GB, free: 12.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.493e-05/0.4866, allocations: 94.91 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.4866, allocations: 3.344 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.4867, allocations: 3.031 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.4868, allocations: 27.52 kB / 0.5283 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4868, allocations: 2.688 kB / 0.5283 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.487, allocations: 28.83 kB / 0.5284 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.487, allocations: 14.12 kB / 0.5284 GB, free: 12.65 MB / 398.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.0002512/0.4873, allocations: 265.8 kB / 0.5286 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.4873, allocations: 33.09 kB / 0.5287 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.446e-05/0.4874, allocations: 26.73 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.4874, allocations: 6.094 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4874, allocations: 2.125 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4874, allocations: 4 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005866/0.488, allocations: 290.5 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.488, allocations: 1.594 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.593e-05/0.4881, allocations: 12.06 kB / 0.529 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.4881, allocations: 1.5 kB / 0.529 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.4881, allocations: 16.27 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4881, allocations: 1.406 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4881, allocations: 160 / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.4888, allocations: 445.6 kB / 0.5294 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.196e-05/0.4889, allocations: 105 kB / 0.5295 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.489, allocations: 15.52 kB / 0.5296 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.4891, allocations: 12.5 kB / 0.5296 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.4892, allocations: 31.48 kB / 0.5296 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.4892, allocations: 9.781 kB / 0.5296 GB, free: 11.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.4895, allocations: 237.6 kB / 0.5298 GB, free: 11.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4895, allocations: 0 / 0.5298 GB, free: 11.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.4899, allocations: 68.41 kB / 0.5299 GB, free: 11.45 MB / 398.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.001027/0.4909, allocations: 436.5 kB / 0.5303 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.4916, allocations: 387.3 kB / 0.5307 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4916, allocations: 1.281 kB / 0.5307 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005689/0.4922, allocations: 345 kB / 0.531 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.4925, allocations: 51.33 kB / 0.5311 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008752/0.4934, allocations: 452.2 kB / 0.5315 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.4939, allocations: 0.758 MB / 0.5322 GB, free: 9.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.833e-05/0.494, allocations: 21.17 kB / 0.5323 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.494, allocations: 20.19 kB / 0.5323 GB, free: 9.582 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.494, allocations: 4 kB / 0.5323 GB, free: 9.578 MB / 398.1 MB Notification: Performance of Templates: time 0.008216/0.5023, allocations: 3.58 MB / 0.5358 GB, free: 7.738 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches