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.001397/0.001397, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001843/0.001843, allocations: 210.4 kB / 23.73 MB, free: 4.41 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2327/0.2327, allocations: 44.94 MB / 358.8 MB, free: 6.066 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.002098/0.002098, allocations: 71.89 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3967/0.3988, allocations: 65.47 MB / 0.5574 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003271/0.402, allocations: 1.609 MB / 0.559 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.4035, allocations: 0.562 MB / 0.5596 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.4036, allocations: 0 / 0.5596 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.4038, allocations: 23.8 kB / 0.5596 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.286e-05/0.4039, allocations: 11.88 kB / 0.5596 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004811/0.4044, allocations: 87.81 kB / 0.5597 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.4046, allocations: 111.7 kB / 0.5598 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.4047, allocations: 27.62 kB / 0.5598 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.4049, allocations: 47.89 kB / 0.5599 GB, free: 5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.704e-05/0.405, allocations: 35.78 kB / 0.5599 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.405, allocations: 8 kB / 0.5599 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.021e-05/0.405, allocations: 8 kB / 0.5599 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.949e-05/0.405, allocations: 23.92 kB / 0.5599 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.4051, allocations: 35.8 kB / 0.56 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.4054, allocations: 86.3 kB / 0.5601 GB, free: 4.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.4054, allocations: 4 kB / 0.5601 GB, free: 4.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4054, allocations: 0 / 0.5601 GB, free: 4.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.4054, allocations: 4 kB / 0.5601 GB, free: 4.801 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.0009214/0.4063, allocations: 342.8 kB / 0.5604 GB, free: 4.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.4064, allocations: 12.03 kB / 0.5604 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.4064, allocations: 16.88 kB / 0.5604 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.4068, allocations: 150.3 kB / 0.5606 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.4068, allocations: 8.375 kB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.4069, allocations: 4.375 kB / 0.5606 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.4072, allocations: 105.9 kB / 0.5607 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.4072, allocations: 0 / 0.5607 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.4072, allocations: 8 kB / 0.5607 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4073, allocations: 4 kB / 0.5607 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.4075, allocations: 47.97 kB / 0.5607 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007987/0.4083, allocations: 316.2 kB / 0.561 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.4086, allocations: 98.55 kB / 0.5611 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.4088, allocations: 40.81 kB / 0.5612 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.4088, allocations: 7.938 kB / 0.5612 GB, free: 3.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.4091, allocations: 99.31 kB / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.4091, allocations: 0 / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004882/0.4096, allocations: 145.6 kB / 0.5614 GB, free: 3.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.4096, allocations: 51.41 kB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.4098, allocations: 149.2 kB / 0.5616 GB, free: 3.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.4098, allocations: 25.7 kB / 0.5616 GB, free: 3.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.4099, allocations: 100.3 kB / 0.5617 GB, free: 2.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.168e-05/0.4099, allocations: 23.94 kB / 0.5617 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.41, allocations: 21.72 kB / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4102, allocations: 322.8 kB / 0.5621 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.4103, allocations: 39.97 kB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.4104, allocations: 49.69 kB / 0.5622 GB, free: 2.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.4106, allocations: 73.62 kB / 0.5622 GB, free: 2.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4106, allocations: 4 kB / 0.5622 GB, free: 2.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002863/0.4109, allocations: 121.5 kB / 0.5623 GB, free: 2.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4109, allocations: 4 kB / 0.5623 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4109, allocations: 0 / 0.5623 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.411, allocations: 0 / 0.5623 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.4111, allocations: 15.98 kB / 0.5624 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.4111, allocations: 12.25 kB / 0.5624 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.666e-05/0.4112, allocations: 11.98 kB / 0.5624 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.4112, allocations: 8 kB / 0.5624 GB, free: 2.223 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.0001256/0.4113, allocations: 121.7 kB / 0.5625 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.4113, allocations: 7.953 kB / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.4114, allocations: 8.719 kB / 0.5625 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.4114, allocations: 4 kB / 0.5625 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4114, allocations: 3.938 kB / 0.5625 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.4114, allocations: 7.984 kB / 0.5625 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005367/0.4119, allocations: 318.2 kB / 0.5628 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.4119, allocations: 0 / 0.5628 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.755e-05/0.412, allocations: 19.92 kB / 0.5629 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.412, allocations: 0 / 0.5629 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.412, allocations: 7.938 kB / 0.5629 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.412, allocations: 4 kB / 0.5629 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.412, allocations: 0 / 0.5629 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.4126, allocations: 247.4 kB / 0.5631 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.4126, allocations: 11.92 kB / 0.5631 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.4126, allocations: 4 kB / 0.5631 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.4127, allocations: 23.98 kB / 0.5631 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.4128, allocations: 19.95 kB / 0.5632 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.4128, allocations: 4 kB / 0.5632 GB, free: 1.355 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.31e-05/0.4129, allocations: 99.27 kB / 0.5633 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4129, allocations: 0 / 0.5633 GB, free: 1.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.4132, allocations: 15.94 kB / 0.5633 GB, free: 1.242 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.0001537/0.4133, allocations: 103.2 kB / 0.5634 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003303/0.4136, allocations: 80.42 kB / 0.5635 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4136, allocations: 0 / 0.5635 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.4139, allocations: 47.91 kB / 0.5635 GB, free: 1.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.4143, allocations: 23.58 kB / 0.5635 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.4153, allocations: 266.5 kB / 0.5638 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.935e-05/0.4154, allocations: 89.31 kB / 0.5639 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.496e-05/0.4154, allocations: 4.672 kB / 0.5639 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.39e-05/0.4155, allocations: 11.44 kB / 0.5639 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4155, allocations: 0 / 0.5639 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of Templates: time 0.004762/0.4203, allocations: 1.29 MB / 0.5651 GB, free: 15.3 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/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: 5.311062831431627]