Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001824/0.001824, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002523/0.002523, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.3 MB / 258 MB, free: 8.199 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2483/0.2483, allocations: 46.94 MB / 361.4 MB, free: 4.406 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator")
translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 79.86 kB / 0.4971 GB, free: 7.551 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3744, allocations: 66.04 MB / 0.5616 GB, free: 4.527 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002302/0.3767, allocations: 0.824 MB / 0.5624 GB, free: 3.707 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0002924/0.377, allocations: 47.81 kB / 0.5625 GB, free: 3.66 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.919e-05/0.3771, allocations: 11.94 kB / 0.5625 GB, free: 3.648 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.3772, allocations: 3.938 kB / 0.5625 GB, free: 3.645 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 1.942e-05/0.3772, allocations: 3.938 kB / 0.5625 GB, free: 3.641 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.3774, allocations: 23.92 kB / 0.5625 GB, free: 3.617 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001511/0.3776, allocations: 39.84 kB / 0.5626 GB, free: 3.578 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3777, allocations: 18.81 kB / 0.5626 GB, free: 3.562 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 3.745e-05/0.3777, allocations: 15.92 kB / 0.5626 GB, free: 3.547 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 4.729e-05/0.3778, allocations: 7.938 kB / 0.5626 GB, free: 3.539 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.3778, allocations: 4 kB / 0.5626 GB, free: 3.535 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.244e-05/0.3778, allocations: 4 kB / 0.5626 GB, free: 3.531 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.302e-05/0.3778, allocations: 7.984 kB / 0.5626 GB, free: 3.523 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.07e-05/0.3779, allocations: 23.86 kB / 0.5627 GB, free: 3.5 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.378, allocations: 31.84 kB / 0.5627 GB, free: 3.469 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.378, allocations: 4 kB / 0.5627 GB, free: 3.465 MB / 398.1 MB
Notification: Performance of FrontEnd: time 4.589e-06/0.378, allocations: 3.984 kB / 0.5627 GB, free: 3.461 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 7.404e-06/0.378, allocations: 0 / 0.5627 GB, free: 3.461 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: 8
 * Number of variables: 8
Notification: Performance of Generate backend data structure: time 0.0006075/0.3786, allocations: 282.8 kB / 0.563 GB, free: 3.152 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3787, allocations: 8.031 kB / 0.563 GB, free: 3.145 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.3787, allocations: 8.891 kB / 0.563 GB, free: 3.137 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.3791, allocations: 130.5 kB / 0.5631 GB, free: 2.984 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.3791, allocations: 384 / 0.5631 GB, free: 2.984 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.3791, allocations: 4.375 kB / 0.5631 GB, free: 2.98 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.3793, allocations: 50.25 kB / 0.5632 GB, free: 2.926 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3793, allocations: 192 / 0.5632 GB, free: 2.926 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.3793, allocations: 3.938 kB / 0.5632 GB, free: 2.922 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3793, allocations: 0 / 0.5632 GB, free: 2.922 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.264e-05/0.3794, allocations: 15.98 kB / 0.5632 GB, free: 2.906 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006072/0.38, allocations: 267.7 kB / 0.5634 GB, free: 2.602 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 6.73e-05/0.3801, allocations: 26.58 kB / 0.5635 GB, free: 2.566 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.76e-05/0.3801, allocations: 4.859 kB / 0.5635 GB, free: 2.559 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.3801, allocations: 0 / 0.5635 GB, free: 2.559 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.855e-05/0.3802, allocations: 55.42 kB / 0.5635 GB, free: 2.492 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.3802, allocations: 7.938 kB / 0.5635 GB, free: 2.484 MB / 398.1 MB
Notification: Performance of matching and sorting (n=3): time 0.0001613/0.3804, allocations: 45.69 kB / 0.5636 GB, free: 2.434 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.3804, allocations: 59.41 kB / 0.5636 GB, free: 2.363 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.3805, allocations: 117.8 kB / 0.5637 GB, free: 2.238 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3806, allocations: 29.7 kB / 0.5638 GB, free: 2.203 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.3806, allocations: 92.09 kB / 0.5638 GB, free: 2.109 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.3806, allocations: 8.016 kB / 0.5639 GB, free: 2.102 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.3807, allocations: 17.72 kB / 0.5639 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001945/0.3809, allocations: 322.8 kB / 0.5642 GB, free: 1.754 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 2.352e-05/0.3809, allocations: 8 kB / 0.5642 GB, free: 1.746 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.312e-05/0.3809, allocations: 21.59 kB / 0.5642 GB, free: 1.719 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.374e-05/0.381, allocations: 37.97 kB / 0.5642 GB, free: 1.676 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.381, allocations: 0 / 0.5642 GB, free: 1.676 MB / 398.1 MB
Notification: Performance of matching and sorting (n=4) (initialization): time 8.01e-05/0.3811, allocations: 49.62 kB / 0.5643 GB, free: 1.621 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3811, allocations: 10.03 kB / 0.5643 GB, free: 1.613 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3811, allocations: 4.031 kB / 0.5643 GB, free: 1.609 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3811, allocations: 0 / 0.5643 GB, free: 1.609 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.435e-05/0.3811, allocations: 4 kB / 0.5643 GB, free: 1.605 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.3811, allocations: 0 / 0.5643 GB, free: 1.605 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.938e-05/0.3812, allocations: 7.953 kB / 0.5643 GB, free: 1.598 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.3812, allocations: 3.938 kB / 0.5643 GB, free: 1.594 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: 2 (greaterEqualThreshold.y,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (4):
 * Single equations (assignments): 4
 * 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.0001211/0.3813, allocations: 113.8 kB / 0.5644 GB, free: 1.473 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.3813, allocations: 0 / 0.5644 GB, free: 1.473 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.386e-05/0.3814, allocations: 15.98 kB / 0.5644 GB, free: 1.449 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3814, allocations: 8 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3814, allocations: 0 / 0.5644 GB, free: 1.441 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3814, allocations: 0 / 0.5644 GB, free: 1.441 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003103/0.3817, allocations: 273.5 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3817, allocations: 0 / 0.5647 GB, free: 1.125 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.103e-05/0.3817, allocations: 3.984 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3817, allocations: 0 / 0.5647 GB, free: 1.121 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.3817, allocations: 4 kB / 0.5647 GB, free: 1.117 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3817, allocations: 3.938 kB / 0.5647 GB, free: 1.113 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3817, allocations: 0 / 0.5647 GB, free: 1.113 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.3819, allocations: 151.5 kB / 0.5649 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.151e-05/0.3819, allocations: 3.953 kB / 0.5649 GB, free: 0.9453 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.3819, allocations: 4.031 kB / 0.5649 GB, free: 0.9414 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.491e-05/0.382, allocations: 3.938 kB / 0.5649 GB, free: 0.9375 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.382, allocations: 7.984 kB / 0.5649 GB, free: 0.9297 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.382, allocations: 4 kB / 0.5649 GB, free: 0.9258 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 7.807e-05/0.3821, allocations: 95.58 kB / 0.565 GB, free: 0.832 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3821, allocations: 4.062 kB / 0.565 GB, free: 0.8281 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002078/0.3823, allocations: 4 kB / 0.565 GB, free: 0.8242 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: 2 (greaterEqualThreshold.y,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (3):
 * Single equations (assignments): 3
 * 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 Backend phase and start with SimCode phase: time 9.756e-05/0.3824, allocations: 91.78 kB / 0.5651 GB, free: 0.7266 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 9.533e-05/0.3825, allocations: 19.92 kB / 0.5651 GB, free: 0.707 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3825, allocations: 4 kB / 0.5651 GB, free: 0.7031 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 1.854e-05/0.3825, allocations: 11.94 kB / 0.5651 GB, free: 0.6914 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.3828, allocations: 4 kB / 0.5651 GB, free: 0.6875 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.3831, allocations: 149.5 kB / 0.5653 GB, free: 0.5156 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.3835, allocations: 0.6807 MB / 0.5659 GB, free: 15.81 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 2.313e-05/0.3836, allocations: 7.984 kB / 0.5659 GB, free: 15.8 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.341e-05/0.3836, allocations: 7.766 kB / 0.5659 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.3836, allocations: 0 / 0.5659 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of Templates: time 0.003479/0.3871, allocations: 0.5198 MB / 0.5664 GB, free: 15.27 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.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.185640314593911]