Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 174.4 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.7 MB / 243.9 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008139/0.000814, allocations: 90.05 kB / 295.1 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3385/0.3385, allocations: 44.33 MB / 390.5 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003445, allocations: 11.98 kB / 463.1 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.462/0.4624, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002116/0.4645, allocations: 1.317 MB / 0.514 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.4656, allocations: 0.5135 MB / 0.5145 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.4657, allocations: 6.438 kB / 0.5145 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.4659, allocations: 7.312 kB / 0.5145 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.096e-05/0.4659, allocations: 10.78 kB / 0.5145 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00043/0.4664, allocations: 86.5 kB / 0.5146 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.4666, allocations: 106.6 kB / 0.5147 GB, free: 36.44 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.4667, allocations: 30.33 kB / 0.5148 GB, free: 36.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.361e-05/0.4668, allocations: 34.73 kB / 0.5148 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.936e-05/0.4669, allocations: 38.38 kB / 0.5148 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.467, allocations: 2.406 kB / 0.5148 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.733e-05/0.467, allocations: 3.375 kB / 0.5148 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.317e-05/0.467, allocations: 16.8 kB / 0.5148 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.4671, allocations: 57.09 kB / 0.5149 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.4673, allocations: 83.17 kB / 0.515 GB, free: 36.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4673, allocations: 0 / 0.515 GB, free: 36.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4673, allocations: 0 / 0.515 GB, free: 36.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.4673, allocations: 0 / 0.515 GB, free: 36.3 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006614/0.468, allocations: 406.4 kB / 0.5154 GB, free: 35.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.468, allocations: 8.438 kB / 0.5154 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.4681, allocations: 10.75 kB / 0.5154 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.4683, allocations: 201.7 kB / 0.5156 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.4683, allocations: 3.344 kB / 0.5156 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.4684, allocations: 10.16 kB / 0.5156 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.4688, allocations: 118.1 kB / 0.5157 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4688, allocations: 2.719 kB / 0.5157 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.4688, allocations: 0 / 0.5157 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.4688, allocations: 3.031 kB / 0.5157 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.4691, allocations: 55.22 kB / 0.5158 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008058/0.4699, allocations: 413.7 kB / 0.5162 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004645/0.4704, allocations: 120.5 kB / 0.5163 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.4705, allocations: 37.44 kB / 0.5163 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.4706, allocations: 0 / 0.5163 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003638/0.4709, allocations: 111.8 kB / 0.5164 GB, free: 35.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.4709, allocations: 0 / 0.5164 GB, free: 35.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006538/0.4716, allocations: 148.6 kB / 0.5166 GB, free: 35.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.4717, allocations: 58.69 kB / 0.5166 GB, free: 35.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.4718, allocations: 148.4 kB / 0.5168 GB, free: 34.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.4718, allocations: 32.7 kB / 0.5168 GB, free: 34.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.4719, allocations: 98.28 kB / 0.5169 GB, free: 34.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.472, allocations: 24.5 kB / 0.5169 GB, free: 34.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-06/0.472, allocations: 0 / 0.5169 GB, free: 34.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.637e-05/0.472, allocations: 325.1 kB / 0.5172 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4722, allocations: 38.25 kB / 0.5172 GB, free: 34.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.4724, allocations: 60.56 kB / 0.5173 GB, free: 34.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003254/0.4728, allocations: 81.2 kB / 0.5174 GB, free: 34.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4728, allocations: 1.031 kB / 0.5174 GB, free: 34.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004263/0.4732, allocations: 129.7 kB / 0.5175 GB, free: 34.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.4733, allocations: 8.844 kB / 0.5175 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4733, allocations: 5.859 kB / 0.5175 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.4733, allocations: 5.062 kB / 0.5175 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.4735, allocations: 15.97 kB / 0.5175 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.4735, allocations: 5.703 kB / 0.5175 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.4737, allocations: 26.66 kB / 0.5176 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.4737, allocations: 2.75 kB / 0.5176 GB, free: 34.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001037/0.4738, allocations: 119.8 kB / 0.5177 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.4738, allocations: 13.2 kB / 0.5177 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.271e-05/0.4739, allocations: 12.48 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4739, allocations: 1.094 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4739, allocations: 0 / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.4739, allocations: 0.5156 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006484/0.4746, allocations: 414.5 kB / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4746, allocations: 0 / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.4747, allocations: 15.25 kB / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.4748, allocations: 0 / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.4748, allocations: 0 / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.113e-06/0.4748, allocations: 6.969 kB / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4748, allocations: 80 / 0.5181 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.4754, allocations: 268.1 kB / 0.5184 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.4755, allocations: 87.02 kB / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.4755, allocations: 0 / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.4757, allocations: 32.12 kB / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.4758, allocations: 12.58 kB / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.4758, allocations: 2.719 kB / 0.5185 GB, free: 33.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.551e-05/0.4759, allocations: 111.7 kB / 0.5186 GB, free: 33.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4759, allocations: 0 / 0.5186 GB, free: 33.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003882/0.4763, allocations: 14.5 kB / 0.5186 GB, free: 33.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001131/0.4764, allocations: 102.2 kB / 0.5187 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004189/0.4769, allocations: 95.64 kB / 0.5188 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4769, allocations: 1.156 kB / 0.5188 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.4771, allocations: 56.78 kB / 0.5189 GB, free: 33.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.4776, allocations: 20.55 kB / 0.5189 GB, free: 33.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.4783, allocations: 258.2 kB / 0.5191 GB, free: 33.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.4784, allocations: 0.696 MB / 0.5198 GB, free: 32.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.009e-05/0.4785, allocations: 11.67 kB / 0.5198 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.719e-05/0.4786, allocations: 16.25 kB / 0.5199 GB, free: 32.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.4e-07/0.4786, allocations: 0 / 0.5199 GB, free: 32.4 MB / 378.7 MB Notification: Performance of Templates: time 0.004751/0.4834, allocations: 1.057 MB / 0.5209 GB, free: 32.31 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches