Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.001474/0.001474, allocations: 110.5 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.001802/0.001802, allocations: 213.2 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.466/1.466, allocations: 230.3 MB / 258 MB, free: 8.195 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.2602/0.2602, allocations: 46.93 MB / 361.4 MB, free: 4.387 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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator")
translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") [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.002321/0.002321, allocations: 79.88 kB / 0.4971 GB, free: 7.512 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.3806, allocations: 66.04 MB / 0.5616 GB, free: 4.52 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003166/0.3837, allocations: 1.663 MB / 0.5633 GB, free: 2.852 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001223/0.3849, allocations: 0.6048 MB / 0.5639 GB, free: 2.242 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.3851, allocations: 3.938 kB / 0.5639 GB, free: 2.238 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.3852, allocations: 11.86 kB / 0.5639 GB, free: 2.227 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.616e-05/0.3852, allocations: 15.88 kB / 0.5639 GB, free: 2.211 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.3856, allocations: 91.69 kB / 0.564 GB, free: 2.121 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001974/0.3858, allocations: 115.8 kB / 0.5641 GB, free: 2.008 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.386, allocations: 30.77 kB / 0.5641 GB, free: 1.98 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.28e-05/0.3861, allocations: 47.78 kB / 0.5642 GB, free: 1.934 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.71e-05/0.3861, allocations: 39.84 kB / 0.5642 GB, free: 1.895 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.3862, allocations: 8 kB / 0.5642 GB, free: 1.887 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.65e-05/0.3862, allocations: 8 kB / 0.5642 GB, free: 1.879 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.3862, allocations: 27.91 kB / 0.5642 GB, free: 1.852 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.834e-05/0.3863, allocations: 39.73 kB / 0.5643 GB, free: 1.812 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.3865, allocations: 83.36 kB / 0.5644 GB, free: 1.734 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3865, allocations: 0 / 0.5644 GB, free: 1.734 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.853e-06/0.3865, allocations: 0 / 0.5644 GB, free: 1.734 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.641e-06/0.3865, allocations: 0 / 0.5644 GB, free: 1.734 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.0007203/0.3872, allocations: 354.7 kB / 0.5647 GB, free: 1.355 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3872, allocations: 12.03 kB / 0.5647 GB, free: 1.344 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.3873, allocations: 8.891 kB / 0.5647 GB, free: 1.336 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.3876, allocations: 154.3 kB / 0.5649 GB, free: 1.16 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3876, allocations: 4.375 kB / 0.5649 GB, free: 1.156 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.3876, allocations: 8.375 kB / 0.5649 GB, free: 1.148 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.3879, allocations: 109.9 kB / 0.565 GB, free: 1.035 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.3879, allocations: 0 / 0.565 GB, free: 1.035 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3879, allocations: 3.938 kB / 0.565 GB, free: 1.031 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.3879, allocations: 0 / 0.565 GB, free: 1.031 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.3881, allocations: 51.97 kB / 0.565 GB, free: 0.9805 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007213/0.3888, allocations: 359.6 kB / 0.5654 GB, free: 0.5859 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3892, allocations: 102.5 kB / 0.5655 GB, free: 488 kB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3893, allocations: 36.86 kB / 0.5655 GB, free: 448 kB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.3893, allocations: 0 / 0.5655 GB, free: 448 kB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.3895, allocations: 103.3 kB / 0.5656 GB, free: 332 kB / 398.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.3895, allocations: 0 / 0.5656 GB, free: 332 kB / 398.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0004609/0.39, allocations: 149.5 kB / 0.5657 GB, free: 176 kB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.3901, allocations: 55.34 kB / 0.5658 GB, free: 108 kB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.3902, allocations: 149.5 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.3902, allocations: 29.7 kB / 0.566 GB, free: 15.91 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.119e-05/0.3903, allocations: 104.1 kB / 0.5661 GB, free: 15.81 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.3904, allocations: 15.86 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.3904, allocations: 29.66 kB / 0.5661 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.000148/0.3905, allocations: 322.8 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3907, allocations: 35.97 kB / 0.5665 GB, free: 15.4 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.3908, allocations: 53.62 kB / 0.5665 GB, free: 15.34 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.391, allocations: 73.69 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.391, allocations: 0 / 0.5666 GB, free: 15.26 MB / 414.1 MB
Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002917/0.3913, allocations: 121.5 kB / 0.5667 GB, free: 15.14 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3913, allocations: 7.938 kB / 0.5667 GB, free: 15.13 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3913, allocations: 8.031 kB / 0.5667 GB, free: 15.12 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.3914, allocations: 0 / 0.5667 GB, free: 15.12 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3915, allocations: 24.2 kB / 0.5667 GB, free: 15.1 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3915, allocations: 0 / 0.5667 GB, free: 15.1 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.059e-05/0.3916, allocations: 20.06 kB / 0.5667 GB, free: 15.08 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.3916, allocations: 7.938 kB / 0.5668 GB, free: 15.07 MB / 414.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.00011/0.3917, allocations: 117.8 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.3917, allocations: 15.84 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.3917, allocations: 20.7 kB / 0.5669 GB, free: 14.9 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3917, allocations: 0 / 0.5669 GB, free: 14.9 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3918, allocations: 0 / 0.5669 GB, free: 14.9 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3918, allocations: 4 kB / 0.5669 GB, free: 14.9 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.3923, allocations: 361.4 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3923, allocations: 4 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.986e-05/0.3924, allocations: 11.98 kB / 0.5673 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3924, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3924, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3924, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3924, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.3928, allocations: 259.8 kB / 0.5675 GB, free: 14.21 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.3929, allocations: 15.92 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.3929, allocations: 4 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.393, allocations: 20.05 kB / 0.5676 GB, free: 14.18 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.3931, allocations: 15.97 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.3931, allocations: 7.938 kB / 0.5676 GB, free: 14.15 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 8.519e-05/0.3932, allocations: 107.2 kB / 0.5677 GB, free: 14.05 MB / 414.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3932, allocations: 0 / 0.5677 GB, free: 14.05 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.000224/0.3934, allocations: 20 kB / 0.5677 GB, free: 14.03 MB / 414.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.000103/0.3935, allocations: 91.25 kB / 0.5678 GB, free: 13.93 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000302/0.3938, allocations: 83.83 kB / 0.5679 GB, free: 13.85 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3938, allocations: 0 / 0.5679 GB, free: 13.85 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3939, allocations: 43.97 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.3942, allocations: 18.64 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009439/0.3952, allocations: 270.5 kB / 0.5682 GB, free: 13.5 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.3955, allocations: 0.7002 MB / 0.5689 GB, free: 12.77 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 4.754e-05/0.3956, allocations: 12.48 kB / 0.5689 GB, free: 12.76 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.759e-05/0.3956, allocations: 11.44 kB / 0.5689 GB, free: 12.75 MB / 414.1 MB
Notification: Performance of SimCode: time 5.11e-07/0.3956, allocations: 0 / 0.5689 GB, free: 12.75 MB / 414.1 MB
Notification: Performance of Templates: time 0.004378/0.4, allocations: 1.279 MB / 0.5701 GB, free: 11.48 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.166311862878501]