Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001466/0.001466, allocations: 79.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.001246/0.001246, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9878/0.9878, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2589/0.2589, allocations: 34.25 MB / 295.7 MB, free: 0.7734 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.797e-05/2.971e-05, allocations: 6.25 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002354/0.002384, allocations: 1.677 MB / 379.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.003579, allocations: 0.5686 MB / 380.3 MB, free: 392 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.003744, allocations: 7.938 kB / 380.3 MB, free: 384 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.003972, allocations: 11.81 kB / 380.3 MB, free: 372 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.208e-05/0.004054, allocations: 15.86 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.004601, allocations: 83.77 kB / 380.4 MB, free: 272 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.004855, allocations: 111.7 kB / 380.5 MB, free: 160 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.004991, allocations: 23.92 kB / 380.5 MB, free: 136 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.005115, allocations: 79.73 kB / 380.6 MB, free: 56 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.005187, allocations: 31.89 kB / 380.6 MB, free: 24 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.005215, allocations: 8 kB / 380.6 MB, free: 16 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.00523, allocations: 8 kB / 380.6 MB, free: 8 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.262e-05/0.005272, allocations: 15.92 kB / 380.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.075e-05/0.005313, allocations: 27.97 kB / 380.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.005464, allocations: 67.73 kB / 380.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.005468, allocations: 0 / 380.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.00547, allocations: 0 / 380.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.005476, allocations: 0 / 380.8 MB, free: 15.9 MB / 362.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.0005934/0.006069, allocations: 443.9 kB / 381.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.006112, allocations: 15.97 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.006174, allocations: 16.89 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.006388, allocations: 147.6 kB / 381.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.006413, allocations: 8.375 kB / 381.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.006439, allocations: 8.328 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.006637, allocations: 90.91 kB / 381.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.006646, allocations: 192 / 381.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.00666, allocations: 12.38 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.006671, allocations: 3.938 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.117e-05/0.006723, allocations: 23.92 kB / 381.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004778/0.0072, allocations: 343.5 kB / 381.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.007323, allocations: 63.03 kB / 381.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.816e-05/0.007351, allocations: 15.72 kB / 381.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.007367, allocations: 11.94 kB / 381.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001302/0.007498, allocations: 77.06 kB / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 3.436e-06/0.007501, allocations: 7.984 kB / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002015/0.007703, allocations: 81.56 kB / 382.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.007744, allocations: 51.41 kB / 382.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.83e-05/0.007843, allocations: 193.8 kB / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.007858, allocations: 33.7 kB / 382.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.007924, allocations: 147.1 kB / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.007949, allocations: 19.88 kB / 382.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.007985, allocations: 31.38 kB / 382.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.008107, allocations: 0.4961 MB / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.859e-05/0.008136, allocations: 11.98 kB / 383.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.842e-05/0.008174, allocations: 35.31 kB / 383.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.202e-05/0.008226, allocations: 39.36 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.00823, allocations: 4 kB / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.755e-05/0.008327, allocations: 77.58 kB / 383.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.008341, allocations: 6.188 kB / 383.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.008346, allocations: 4.031 kB / 383.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.008359, allocations: 0 / 383.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.443e-05/0.008444, allocations: 19.92 kB / 383.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.008449, allocations: 0 / 383.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.567e-05/0.008485, allocations: 15.95 kB / 383.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.00849, allocations: 0 / 383.3 MB, free: 13.16 MB / 362.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,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 8.023e-05/0.00857, allocations: 171.8 kB / 383.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.008588, allocations: 19.94 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.135e-05/0.00862, allocations: 8.781 kB / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.008622, allocations: 4 kB / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.008627, allocations: 0 / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.008631, allocations: 4 kB / 383.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.008921, allocations: 341.3 kB / 383.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.008922, allocations: 0 / 383.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/0.008978, allocations: 8 kB / 383.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.008981, allocations: 0 / 383.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.008991, allocations: 0 / 383.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.008994, allocations: 3.938 kB / 383.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.008995, allocations: 0 / 383.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.009178, allocations: 247.8 kB / 384.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.269e-05/0.00919, allocations: 3.953 kB / 384.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.009206, allocations: 7.984 kB / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.938e-05/0.009255, allocations: 4 kB / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.009314, allocations: 23.91 kB / 384.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.00932, allocations: 0 / 384.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.009375, allocations: 143.2 kB / 384.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009375, allocations: 0 / 384.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001576/0.009533, allocations: 19.94 kB / 384.3 MB, free: 12.09 MB / 362.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,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 8.888e-05/0.009622, allocations: 99.28 kB / 384.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.009752, allocations: 47.61 kB / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.009754, allocations: 0 / 384.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.854e-05/0.009802, allocations: 27.67 kB / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.01004, allocations: 19.92 kB / 384.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005609/0.0106, allocations: 250.1 kB / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.112e-05/0.01066, allocations: 63.34 kB / 384.7 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.002e-05/0.0107, allocations: 8.719 kB / 384.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.01075, allocations: 16.5 kB / 384.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.363e-06/0.01075, allocations: 0 / 384.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of Templates: time 0.003401/0.01415, allocations: 1.337 MB / 386.1 MB, free: 10.19 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.985463181976229]