Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, 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.608/1.608, allocations: 222.9 MB / 241.6 MB, free: 10.99 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.001069/0.001069, allocations: 120 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.3709/0.3709, allocations: 44.14 MB / 386.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 51.91 kB / 457.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3919, allocations: 60.8 MB / 0.5064 GB, free: 38.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002687/0.3947, allocations: 1.683 MB / 0.508 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000765/0.3955, allocations: 0.5439 MB / 0.5086 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.105e-05/0.3956, allocations: 2.531 kB / 0.5086 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3957, allocations: 15.2 kB / 0.5086 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.116e-05/0.3958, allocations: 10.75 kB / 0.5086 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.3961, allocations: 79.89 kB / 0.5087 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.3962, allocations: 103.7 kB / 0.5088 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3963, allocations: 30.06 kB / 0.5088 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.999e-05/0.3964, allocations: 49.48 kB / 0.5088 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.371e-05/0.3965, allocations: 41.56 kB / 0.5089 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.3965, allocations: 5.25 kB / 0.5089 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.3965, allocations: 5.531 kB / 0.5089 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.291e-05/0.3965, allocations: 9.859 kB / 0.5089 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.3966, allocations: 45.66 kB / 0.5089 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.3967, allocations: 81.05 kB / 0.509 GB, free: 36.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3967, allocations: 0 / 0.509 GB, free: 36.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3967, allocations: 0 / 0.509 GB, free: 36.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.3967, allocations: 0 / 0.509 GB, free: 36.48 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.0005524/0.3973, allocations: 417.4 kB / 0.5094 GB, free: 36.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3973, allocations: 8.594 kB / 0.5094 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.3974, allocations: 10.53 kB / 0.5094 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.3975, allocations: 200.5 kB / 0.5096 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.3976, allocations: 7.797 kB / 0.5096 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.3976, allocations: 7.938 kB / 0.5096 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.3978, allocations: 107.1 kB / 0.5097 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.3979, allocations: 6.859 kB / 0.5097 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3979, allocations: 0 / 0.5097 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.3979, allocations: 2.844 kB / 0.5097 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.398, allocations: 49.81 kB / 0.5098 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.3986, allocations: 387.5 kB / 0.5102 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003791/0.399, allocations: 104.3 kB / 0.5103 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.3991, allocations: 35.36 kB / 0.5103 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.3992, allocations: 0 / 0.5103 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.3994, allocations: 105.4 kB / 0.5104 GB, free: 35.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3995, allocations: 0 / 0.5104 GB, free: 35.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004273/0.3999, allocations: 145.7 kB / 0.5105 GB, free: 35.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.3999, allocations: 61.53 kB / 0.5106 GB, free: 35.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.428e-05/0.4, allocations: 148 kB / 0.5107 GB, free: 35.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.4, allocations: 25.7 kB / 0.5108 GB, free: 35.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.4001, allocations: 109.2 kB / 0.5109 GB, free: 34.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.4001, allocations: 18.92 kB / 0.5109 GB, free: 34.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.4002, allocations: 22.89 kB / 0.5109 GB, free: 34.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.4002, allocations: 320.6 kB / 0.5112 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.4003, allocations: 41.2 kB / 0.5113 GB, free: 34.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.4005, allocations: 47.19 kB / 0.5113 GB, free: 34.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.4007, allocations: 81.12 kB / 0.5114 GB, free: 34.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4007, allocations: 0 / 0.5114 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002451/0.4009, allocations: 124.9 kB / 0.5115 GB, free: 34.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4009, allocations: 10.08 kB / 0.5115 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.401, allocations: 6.969 kB / 0.5115 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.401, allocations: 0 / 0.5115 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.4011, allocations: 14.98 kB / 0.5115 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4011, allocations: 4.25 kB / 0.5115 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.786e-05/0.4012, allocations: 18.69 kB / 0.5115 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.4012, allocations: 4 kB / 0.5115 GB, free: 34.46 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 7.976e-05/0.4013, allocations: 122 kB / 0.5117 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.4013, allocations: 16.86 kB / 0.5117 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.4014, allocations: 11.69 kB / 0.5117 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4014, allocations: 3.938 kB / 0.5117 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4014, allocations: 0 / 0.5117 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4014, allocations: 0 / 0.5117 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004535/0.4018, allocations: 409.8 kB / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4019, allocations: 0 / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.779e-05/0.4019, allocations: 12.59 kB / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.402, allocations: 2.75 kB / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.402, allocations: 0 / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.402, allocations: 0 / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.402, allocations: 0 / 0.5121 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.4036, allocations: 1.346 MB / 0.5134 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.4036, allocations: 81.02 kB / 0.5135 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.4036, allocations: 6.781 kB / 0.5135 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.4038, allocations: 22.02 kB / 0.5135 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.4038, allocations: 12.53 kB / 0.5135 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.4039, allocations: 2.75 kB / 0.5135 GB, free: 32.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.318e-05/0.4039, allocations: 117.3 kB / 0.5136 GB, free: 32.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4039, allocations: 0 / 0.5136 GB, free: 32.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002911/0.4042, allocations: 24.38 kB / 0.5137 GB, free: 32.65 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 8.029e-05/0.4043, allocations: 95.16 kB / 0.5138 GB, free: 32.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002663/0.4046, allocations: 89.39 kB / 0.5138 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4046, allocations: 2.875 kB / 0.5138 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.4047, allocations: 43.5 kB / 0.5139 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.405, allocations: 16.34 kB / 0.5139 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005061/0.4056, allocations: 368 kB / 0.5143 GB, free: 32.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.4057, allocations: 0.7052 MB / 0.5149 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.123e-05/0.4057, allocations: 9.781 kB / 0.515 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.217e-05/0.4058, allocations: 12.34 kB / 0.515 GB, free: 31.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4058, allocations: 0 / 0.515 GB, free: 31.5 MB / 378.7 MB Notification: Performance of Templates: time 0.002944/0.4087, allocations: 1.176 MB / 0.5161 GB, free: 31.39 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@2/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