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.001608/0.001608, allocations: 186.9 kB / 17.97 MB, free: 3.797 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.385/1.385, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001176, allocations: 104.5 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3867/0.3867, allocations: 44.13 MB / 386.1 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 51.92 kB / 457.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3951, allocations: 60.79 MB / 0.5064 GB, free: 38.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003027/0.3982, allocations: 1.938 MB / 0.5083 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3996, allocations: 1.034 MB / 0.5093 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.999e-05/0.3997, allocations: 0 / 0.5093 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005968/0.4003, allocations: 181.3 kB / 0.5095 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.4006, allocations: 119.2 kB / 0.5096 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003861/0.401, allocations: 165.8 kB / 0.5097 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002339/0.4012, allocations: 256.3 kB / 0.51 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.4013, allocations: 35.16 kB / 0.51 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.4015, allocations: 101.8 kB / 0.5101 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.4016, allocations: 111.6 kB / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.4016, allocations: 7.781 kB / 0.5102 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.4018, allocations: 52.66 kB / 0.5103 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.581e-05/0.4019, allocations: 61.22 kB / 0.5103 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.402, allocations: 98.8 kB / 0.5104 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.4022, allocations: 266.4 kB / 0.5107 GB, free: 35.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.4023, allocations: 0 / 0.5107 GB, free: 35.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.4023, allocations: 0 / 0.5107 GB, free: 35.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.4023, allocations: 0 / 0.5107 GB, free: 35.67 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.0008067/0.4031, allocations: 0.6655 MB / 0.5113 GB, free: 35.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4031, allocations: 8.688 kB / 0.5113 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.4032, allocations: 29.62 kB / 0.5114 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.4036, allocations: 269.6 kB / 0.5116 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.127e-05/0.4036, allocations: 93.11 kB / 0.5117 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.4037, allocations: 19.03 kB / 0.5117 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.404, allocations: 163.5 kB / 0.5119 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.404, allocations: 0 / 0.5119 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.404, allocations: 6.812 kB / 0.5119 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.404, allocations: 6.812 kB / 0.5119 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.4043, allocations: 97.86 kB / 0.512 GB, free: 34.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007211/0.405, allocations: 0.6076 MB / 0.5126 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.4053, allocations: 180.5 kB / 0.5127 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.4055, allocations: 93.98 kB / 0.5128 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.4055, allocations: 6.094 kB / 0.5128 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003782/0.4059, allocations: 438.7 kB / 0.5133 GB, free: 33.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.724e-06/0.4059, allocations: 0 / 0.5133 GB, free: 33.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007168/0.4066, allocations: 439.2 kB / 0.5137 GB, free: 33.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.4067, allocations: 214.9 kB / 0.5139 GB, free: 32.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/0.407, allocations: 313.4 kB / 0.5142 GB, free: 32.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.407, allocations: 36.23 kB / 0.5142 GB, free: 32.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.193e-05/0.4071, allocations: 138.2 kB / 0.5144 GB, free: 32.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.4071, allocations: 49.2 kB / 0.5144 GB, free: 32.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.588e-05/0.4072, allocations: 53.52 kB / 0.5144 GB, free: 32.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.007e-05/0.4073, allocations: 337.1 kB / 0.5148 GB, free: 32.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.4074, allocations: 54.16 kB / 0.5148 GB, free: 32.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.4076, allocations: 151.8 kB / 0.515 GB, free: 32.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003033/0.4079, allocations: 356.4 kB / 0.5153 GB, free: 31.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4079, allocations: 0 / 0.5153 GB, free: 31.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000427/0.4083, allocations: 356.4 kB / 0.5156 GB, free: 31.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.4084, allocations: 96.38 kB / 0.5157 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.4084, allocations: 2.906 kB / 0.5157 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.4084, allocations: 3 kB / 0.5157 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.4085, allocations: 21.61 kB / 0.5158 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.4085, allocations: 3.781 kB / 0.5158 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.4087, allocations: 27.27 kB / 0.5158 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.4087, allocations: 10.38 kB / 0.5158 GB, free: 31.45 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,$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.000191/0.4089, allocations: 271.4 kB / 0.5161 GB, free: 31.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.409, allocations: 36.92 kB / 0.5161 GB, free: 31.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.409, allocations: 25.52 kB / 0.5161 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.409, allocations: 1.844 kB / 0.5161 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.409, allocations: 1 kB / 0.5161 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.409, allocations: 1.156 kB / 0.5161 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.4092, allocations: 288.6 kB / 0.5164 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4093, allocations: 5.094 kB / 0.5164 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.81e-05/0.4093, allocations: 15.42 kB / 0.5164 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4093, allocations: 1.844 kB / 0.5164 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.4093, allocations: 10.84 kB / 0.5164 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.4093, allocations: 6.312 kB / 0.5164 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4093, allocations: 0 / 0.5164 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008656/0.4102, allocations: 1.111 MB / 0.5175 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.4103, allocations: 105.2 kB / 0.5176 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.673e-05/0.4103, allocations: 16.28 kB / 0.5176 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.4104, allocations: 18.72 kB / 0.5177 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.4105, allocations: 15.56 kB / 0.5177 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.4105, allocations: 12.22 kB / 0.5177 GB, free: 29.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001713/0.4107, allocations: 241 kB / 0.5179 GB, free: 29.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4107, allocations: 0 / 0.5179 GB, free: 29.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000403/0.4111, allocations: 66.69 kB / 0.518 GB, free: 29.76 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.0009118/0.412, allocations: 429.4 kB / 0.5184 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.4126, allocations: 393.1 kB / 0.5188 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4126, allocations: 0 / 0.5188 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.413, allocations: 350.9 kB / 0.5191 GB, free: 29.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.4133, allocations: 59.06 kB / 0.5192 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007765/0.4141, allocations: 0.6588 MB / 0.5198 GB, free: 28.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.4143, allocations: 0.7508 MB / 0.5205 GB, free: 27.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.791e-05/0.4144, allocations: 31.14 kB / 0.5206 GB, free: 27.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.4144, allocations: 22.5 kB / 0.5206 GB, free: 27.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4144, allocations: 0 / 0.5206 GB, free: 27.81 MB / 378.7 MB Notification: Performance of Templates: time 0.006339/0.4208, allocations: 3.328 MB / 0.5238 GB, free: 27.45 MB / 378.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@2/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