Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009745/0.0009746, allocations: 197 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007557/0.0007559, allocations: 93.2 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2738/0.2738, allocations: 45 MB / 397 MB, free: 31.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002222, allocations: 8 kB / 470.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2519, allocations: 63.09 MB / 0.5214 GB, free: 38.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001696/0.2536, allocations: 1.586 MB / 0.5229 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.255, allocations: 1.896 MB / 0.5248 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.995e-05/0.2551, allocations: 3.938 kB / 0.5248 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005097/0.2557, allocations: 177.7 kB / 0.5249 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.2559, allocations: 146.3 kB / 0.5251 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.2563, allocations: 173.5 kB / 0.5252 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.2565, allocations: 263.2 kB / 0.5255 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.2566, allocations: 35.19 kB / 0.5255 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.2567, allocations: 95.16 kB / 0.5256 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.2569, allocations: 111.2 kB / 0.5257 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.2569, allocations: 8.781 kB / 0.5257 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.257, allocations: 43.38 kB / 0.5258 GB, free: 35.08 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.2571, allocations: 62.47 kB / 0.5258 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.242e-05/0.2572, allocations: 130 kB / 0.526 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.2574, allocations: 271.7 kB / 0.5262 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2574, allocations: 2.625 kB / 0.5262 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2574, allocations: 0 / 0.5262 GB, free: 34.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2574, allocations: 0 / 0.5262 GB, free: 34.86 MB / 378.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.0006052/0.2581, allocations: 0.6195 MB / 0.5268 GB, free: 34.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.2581, allocations: 15.44 kB / 0.5268 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.2581, allocations: 26.91 kB / 0.5269 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2584, allocations: 286.6 kB / 0.5271 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.466e-05/0.2585, allocations: 86.42 kB / 0.5272 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.2585, allocations: 26.55 kB / 0.5272 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.2588, allocations: 164 kB / 0.5274 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-06/0.2588, allocations: 0 / 0.5274 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.2588, allocations: 9.562 kB / 0.5274 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.2588, allocations: 2.812 kB / 0.5274 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.259, allocations: 88.05 kB / 0.5275 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005947/0.2596, allocations: 0.6161 MB / 0.5281 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.2599, allocations: 178.6 kB / 0.5283 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.26, allocations: 93.88 kB / 0.5284 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.2601, allocations: 6.812 kB / 0.5284 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003135/0.2604, allocations: 431.8 kB / 0.5288 GB, free: 32.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.2604, allocations: 0 / 0.5288 GB, free: 32.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.000638/0.2611, allocations: 456.4 kB / 0.5292 GB, free: 32.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.2611, allocations: 218.7 kB / 0.5294 GB, free: 32.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.2614, allocations: 322.9 kB / 0.5297 GB, free: 32.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2614, allocations: 32.67 kB / 0.5298 GB, free: 31.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.045e-05/0.2615, allocations: 139.2 kB / 0.5299 GB, free: 31.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.2615, allocations: 53.62 kB / 0.5299 GB, free: 31.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.2615, allocations: 0 / 0.5299 GB, free: 31.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.308e-05/0.2616, allocations: 342 kB / 0.5303 GB, free: 31.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.2617, allocations: 57.08 kB / 0.5303 GB, free: 31.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.2618, allocations: 144.1 kB / 0.5305 GB, free: 31.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.2621, allocations: 374 kB / 0.5308 GB, free: 31.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2621, allocations: 0 / 0.5308 GB, free: 31.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003919/0.2625, allocations: 338.7 kB / 0.5311 GB, free: 30.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.2626, allocations: 104.4 kB / 0.5312 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2626, allocations: 2.969 kB / 0.5312 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2626, allocations: 3.062 kB / 0.5312 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.974e-05/0.2627, allocations: 28.72 kB / 0.5313 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2627, allocations: 6.922 kB / 0.5313 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.2628, allocations: 30.03 kB / 0.5313 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2629, allocations: 13 kB / 0.5313 GB, free: 30.68 MB / 378.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.263, allocations: 275.9 kB / 0.5316 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.2631, allocations: 33.19 kB / 0.5316 GB, free: 30.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.589e-05/0.2631, allocations: 25.72 kB / 0.5316 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2631, allocations: 2.969 kB / 0.5316 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2631, allocations: 0 / 0.5316 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2631, allocations: 0 / 0.5316 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.2633, allocations: 296.4 kB / 0.5319 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2633, allocations: 6.688 kB / 0.5319 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.553e-05/0.2634, allocations: 2.906 kB / 0.5319 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2634, allocations: 10.84 kB / 0.5319 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.2634, allocations: 11.72 kB / 0.532 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2634, allocations: 7.938 kB / 0.532 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2634, allocations: 0 / 0.532 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.2639, allocations: 453 kB / 0.5324 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.264, allocations: 106.3 kB / 0.5325 GB, free: 29.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.264, allocations: 12.66 kB / 0.5325 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2641, allocations: 21.08 kB / 0.5325 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.2642, allocations: 19.81 kB / 0.5325 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.2642, allocations: 11.75 kB / 0.5326 GB, free: 29.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.2644, allocations: 239.4 kB / 0.5328 GB, free: 29.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2644, allocations: 10.88 kB / 0.5328 GB, free: 29.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002607/0.2647, allocations: 63.88 kB / 0.5329 GB, free: 29.61 MB / 378.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,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.0008185/0.2655, allocations: 492.8 kB / 0.5333 GB, free: 29.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.2659, allocations: 402.3 kB / 0.5337 GB, free: 29.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2659, allocations: 0 / 0.5337 GB, free: 29.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.2662, allocations: 339.1 kB / 0.534 GB, free: 28.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.2665, allocations: 58.75 kB / 0.5341 GB, free: 28.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.2671, allocations: 0.4995 MB / 0.5346 GB, free: 28.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2673, allocations: 0.7513 MB / 0.5353 GB, free: 27.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.073e-05/0.2674, allocations: 27.78 kB / 0.5353 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/0.2674, allocations: 22.25 kB / 0.5354 GB, free: 27.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2674, allocations: 7.875 kB / 0.5354 GB, free: 27.71 MB / 378.7 MB Notification: Performance of Templates: time 0.005758/0.2732, allocations: 3.176 MB / 0.5385 GB, free: 27.38 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches