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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002327/0.002327, allocations: 214.1 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.592/1.592, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.227/0.227, allocations: 44.94 MB / 359.6 MB, free: 6.047 MB / 286.1 MB " [Timeout remaining time 180] 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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 63.91 kB / 0.4942 GB, free: 10.03 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3432, allocations: 65.47 MB / 0.5582 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003103/0.3463, allocations: 1.617 MB / 0.5598 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.3475, allocations: 0.5621 MB / 0.5603 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.18e-05/0.3476, allocations: 4 kB / 0.5603 GB, free: 5.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.3477, allocations: 11.81 kB / 0.5603 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.485e-05/0.3477, allocations: 15.86 kB / 0.5603 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.3481, allocations: 83.83 kB / 0.5604 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.3483, allocations: 111.7 kB / 0.5605 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3484, allocations: 31.61 kB / 0.5606 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.349e-05/0.3485, allocations: 51.84 kB / 0.5606 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.4e-05/0.3485, allocations: 31.84 kB / 0.5606 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.3486, allocations: 8 kB / 0.5606 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.3486, allocations: 8 kB / 0.5606 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.07e-05/0.3486, allocations: 19.92 kB / 0.5607 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.594e-05/0.3487, allocations: 35.8 kB / 0.5607 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.3489, allocations: 94.28 kB / 0.5608 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3489, allocations: 0 / 0.5608 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3489, allocations: 0 / 0.5608 GB, free: 4.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3489, allocations: 0 / 0.5608 GB, free: 4.766 MB / 398.1 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.0006988/0.3496, allocations: 352.8 kB / 0.5611 GB, free: 4.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3496, allocations: 12.03 kB / 0.5611 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.3497, allocations: 8.891 kB / 0.5611 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.3499, allocations: 150.3 kB / 0.5613 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.35, allocations: 4.375 kB / 0.5613 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.35, allocations: 12.38 kB / 0.5613 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.3503, allocations: 112.8 kB / 0.5614 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3503, allocations: 0 / 0.5614 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3503, allocations: 4 kB / 0.5614 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.3503, allocations: 0 / 0.5614 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.3505, allocations: 51.97 kB / 0.5615 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.3511, allocations: 312.2 kB / 0.5618 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.3515, allocations: 106.5 kB / 0.5619 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.3516, allocations: 40.81 kB / 0.5619 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.3516, allocations: 0 / 0.5619 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.3519, allocations: 99.31 kB / 0.562 GB, free: 3.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.3519, allocations: 0 / 0.562 GB, free: 3.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004766/0.3524, allocations: 145.6 kB / 0.5621 GB, free: 3.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.3524, allocations: 51.41 kB / 0.5622 GB, free: 3.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.3526, allocations: 138 kB / 0.5623 GB, free: 3.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.3526, allocations: 33.7 kB / 0.5624 GB, free: 3.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.094e-05/0.3527, allocations: 100.3 kB / 0.5624 GB, free: 2.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.3527, allocations: 15.94 kB / 0.5625 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.3527, allocations: 29.7 kB / 0.5625 GB, free: 2.863 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3529, allocations: 326.8 kB / 0.5628 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.353, allocations: 31.98 kB / 0.5628 GB, free: 2.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.3531, allocations: 49.69 kB / 0.5629 GB, free: 2.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.3534, allocations: 81.61 kB / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3534, allocations: 0 / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000314/0.3537, allocations: 117.5 kB / 0.5631 GB, free: 2.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3537, allocations: 4 kB / 0.5631 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3537, allocations: 4.281 kB / 0.5631 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3537, allocations: 4.031 kB / 0.5631 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.3538, allocations: 15.98 kB / 0.5631 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3538, allocations: 7.875 kB / 0.5631 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.192e-05/0.3539, allocations: 11.98 kB / 0.5631 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3539, allocations: 4 kB / 0.5631 GB, free: 2.191 MB / 398.1 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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 0.0001183/0.3541, allocations: 125.8 kB / 0.5632 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.3541, allocations: 11.94 kB / 0.5633 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.3541, allocations: 16.72 kB / 0.5633 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3541, allocations: 0 / 0.5633 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.3541, allocations: 3.938 kB / 0.5633 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3541, allocations: 0 / 0.5633 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005317/0.3547, allocations: 326.5 kB / 0.5636 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3547, allocations: 0 / 0.5636 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-05/0.3548, allocations: 23.86 kB / 0.5636 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.3548, allocations: 0 / 0.5636 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.3548, allocations: 7.938 kB / 0.5636 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3548, allocations: 80 / 0.5636 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3548, allocations: 3.984 kB / 0.5636 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.3553, allocations: 243.5 kB / 0.5638 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.5e-05/0.3553, allocations: 7.953 kB / 0.5639 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.3553, allocations: 7.938 kB / 0.5639 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.3555, allocations: 19.97 kB / 0.5639 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/0.3555, allocations: 19.97 kB / 0.5639 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.3555, allocations: 4 kB / 0.5639 GB, free: 1.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.758e-05/0.3556, allocations: 102.2 kB / 0.564 GB, free: 1.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3556, allocations: 4 kB / 0.564 GB, free: 1.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.3558, allocations: 15.94 kB / 0.564 GB, free: 1.199 MB / 398.1 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,change.u,booleanPulse.pulseStart) * 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.0001073/0.356, allocations: 99.25 kB / 0.5641 GB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.3563, allocations: 83.94 kB / 0.5642 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3563, allocations: 0 / 0.5642 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.3564, allocations: 39.98 kB / 0.5642 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.3567, allocations: 19.92 kB / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000998/0.3577, allocations: 296.2 kB / 0.5645 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.785e-05/0.3578, allocations: 81.33 kB / 0.5646 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.366e-05/0.3579, allocations: 15.44 kB / 0.5646 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3579, allocations: 0 / 0.5646 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of Templates: time 0.003244/0.3611, allocations: 1.33 MB / 0.5659 GB, free: 15.19 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.581608551088721]