Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008989/0.000899, allocations: 175 kB / 16.72 MB, free: 5.082 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.198/1.198, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007283/0.0007284, allocations: 93.73 kB / 271.2 MB, free: 8.254 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.2779/0.2779, allocations: 43.56 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 12 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.0883, allocations: 58.86 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001899/0.09023, allocations: 1.568 MB / 492.4 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.09146, allocations: 0.8863 MB / 493.3 MB, free: 8.414 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.751e-05/0.09155, allocations: 4 kB / 493.3 MB, free: 8.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005055/0.09206, allocations: 167.6 kB / 493.4 MB, free: 8.246 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.09231, allocations: 111.7 kB / 493.5 MB, free: 8.137 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.09267, allocations: 139.8 kB / 493.7 MB, free: 8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.09292, allocations: 235.3 kB / 493.9 MB, free: 7.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.984e-05/0.09303, allocations: 37.66 kB / 494 MB, free: 7.734 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.09319, allocations: 95.67 kB / 494 MB, free: 7.641 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.09333, allocations: 107.6 kB / 494.2 MB, free: 7.535 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.671e-05/0.09337, allocations: 8 kB / 494.2 MB, free: 7.527 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.09348, allocations: 43.98 kB / 494.2 MB, free: 7.484 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.09356, allocations: 51.81 kB / 494.3 MB, free: 7.434 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.09368, allocations: 121.2 kB / 494.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.09391, allocations: 207.7 kB / 494.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.09392, allocations: 0 / 494.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09393, allocations: 0 / 494.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.09394, allocations: 0 / 494.6 MB, free: 7.105 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.000748/0.09469, allocations: 0.6183 MB / 495.2 MB, free: 6.414 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.09473, allocations: 8.031 kB / 495.2 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.915e-05/0.09479, allocations: 28.66 kB / 495.2 MB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.0951, allocations: 278.8 kB / 495.5 MB, free: 6.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.329e-05/0.09519, allocations: 93.67 kB / 495.6 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.09523, allocations: 27.88 kB / 495.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.09554, allocations: 153 kB / 495.8 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.09555, allocations: 0 / 495.8 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.09558, allocations: 7.984 kB / 495.8 MB, free: 5.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.09559, allocations: 3.938 kB / 495.8 MB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.09581, allocations: 99.88 kB / 495.9 MB, free: 5.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.09655, allocations: 0.6141 MB / 496.5 MB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.09688, allocations: 171.9 kB / 496.7 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.09706, allocations: 102.5 kB / 496.8 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.0971, allocations: 7.938 kB / 496.8 MB, free: 4.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004008/0.09751, allocations: 437.1 kB / 497.2 MB, free: 4.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.09752, allocations: 0 / 497.2 MB, free: 4.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007613/0.09829, allocations: 442.3 kB / 497.6 MB, free: 3.707 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.09839, allocations: 217.6 kB / 497.8 MB, free: 3.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.09871, allocations: 316.9 kB / 498.1 MB, free: 3.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.09874, allocations: 37.7 kB / 498.2 MB, free: 3.086 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.751e-05/0.09884, allocations: 136.6 kB / 498.3 MB, free: 2.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.519e-05/0.09889, allocations: 55.28 kB / 498.4 MB, free: 2.895 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.09891, allocations: 8 kB / 498.4 MB, free: 2.887 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.09903, allocations: 334.8 kB / 498.7 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.09917, allocations: 55.97 kB / 498.8 MB, free: 2.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.09936, allocations: 146.2 kB / 498.9 MB, free: 2.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.09972, allocations: 358.7 kB / 499.3 MB, free: 1.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.09973, allocations: 0 / 499.3 MB, free: 1.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004943/0.1002, allocations: 354.8 kB / 499.6 MB, free: 1.527 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.1003, allocations: 101 kB / 499.7 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.1003, allocations: 4 kB / 499.7 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1003, allocations: 0 / 499.7 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.172e-05/0.1004, allocations: 24.2 kB / 499.7 MB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.1005, allocations: 11.94 kB / 499.7 MB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.1006, allocations: 31.83 kB / 499.8 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.1006, allocations: 12 kB / 499.8 MB, free: 1.328 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.1008, allocations: 257.5 kB / 0.4883 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/0.1009, allocations: 39.59 kB / 0.4884 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.1009, allocations: 25.7 kB / 0.4884 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1009, allocations: 4 kB / 0.4884 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1009, allocations: 0 / 0.4884 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.101, allocations: 0 / 0.4884 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.1012, allocations: 297.4 kB / 0.4887 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1012, allocations: 0 / 0.4887 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.733e-05/0.1013, allocations: 4 kB / 0.4887 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1013, allocations: 7.938 kB / 0.4887 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.1013, allocations: 4 kB / 0.4887 GB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1013, allocations: 4 kB / 0.4887 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1013, allocations: 0 / 0.4887 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005848/0.1019, allocations: 455.3 kB / 0.4891 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.102, allocations: 108.8 kB / 0.4892 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.1479/0.2499, allocations: 11.48 kB / 0.4892 GB, free: 43.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.2501, allocations: 20.75 kB / 0.4893 GB, free: 43.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.2502, allocations: 18.3 kB / 0.4893 GB, free: 43.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.2503, allocations: 10.59 kB / 0.4893 GB, free: 43.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.2505, allocations: 236.9 kB / 0.4895 GB, free: 43.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2505, allocations: 1.344 kB / 0.4895 GB, free: 43.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004046/0.2509, allocations: 68.7 kB / 0.4896 GB, free: 43.38 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 (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.0008188/0.2518, allocations: 439.8 kB / 0.49 GB, free: 43.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004934/0.2523, allocations: 388.4 kB / 0.4904 GB, free: 43.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2523, allocations: 0 / 0.4904 GB, free: 43.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.2526, allocations: 352 kB / 0.4907 GB, free: 42.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2529, allocations: 52.81 kB / 0.4907 GB, free: 42.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006923/0.2536, allocations: 0.5014 MB / 0.4912 GB, free: 42.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.2538, allocations: 0.7528 MB / 0.492 GB, free: 41.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.659e-05/0.2539, allocations: 19.52 kB / 0.492 GB, free: 41.86 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2539, allocations: 0 / 0.492 GB, free: 41.86 MB / 378.7 MB Notification: Performance of Templates: time 0.0054/0.2593, allocations: 3.481 MB / 0.4954 GB, free: 41.5 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches