Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.001519/0.001519, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001833/0.001833, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.513/1.513, allocations: 230.3 MB / 258 MB, free: 8.246 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.2608/0.2608, allocations: 46.95 MB / 361.4 MB, free: 4.504 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator")
translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") [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.002584/0.002584, allocations: 91.84 kB / 0.4972 GB, free: 7.547 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3845, allocations: 66.04 MB / 0.5616 GB, free: 4.527 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00364/0.3881, allocations: 1.639 MB / 0.5632 GB, free: 2.883 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0009874/0.3891, allocations: 0.5191 MB / 0.5638 GB, free: 2.359 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.188e-05/0.3892, allocations: 7.938 kB / 0.5638 GB, free: 2.352 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.3893, allocations: 15.86 kB / 0.5638 GB, free: 2.336 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.519e-05/0.3894, allocations: 11.88 kB / 0.5638 GB, free: 2.324 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.3896, allocations: 31.91 kB / 0.5638 GB, free: 2.293 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001743/0.3898, allocations: 75.83 kB / 0.5639 GB, free: 2.219 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.3899, allocations: 31.8 kB / 0.5639 GB, free: 2.188 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 5.893e-05/0.39, allocations: 31.92 kB / 0.564 GB, free: 2.156 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.312e-05/0.3901, allocations: 31.78 kB / 0.564 GB, free: 2.125 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.3901, allocations: 8 kB / 0.564 GB, free: 2.117 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.459e-05/0.3901, allocations: 4 kB / 0.564 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.3901, allocations: 16 kB / 0.564 GB, free: 2.098 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.3902, allocations: 39.72 kB / 0.564 GB, free: 2.059 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.3903, allocations: 74.53 kB / 0.5641 GB, free: 1.988 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3903, allocations: 0 / 0.5641 GB, free: 1.988 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.003e-06/0.3903, allocations: 0 / 0.5641 GB, free: 1.988 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 7.013e-06/0.3904, allocations: 3.938 kB / 0.5641 GB, free: 1.984 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: 16
 * Number of variables: 16
Notification: Performance of Generate backend data structure: time 0.0006116/0.391, allocations: 326.8 kB / 0.5644 GB, free: 1.633 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 0.0001026/0.3911, allocations: 8.031 kB / 0.5644 GB, free: 1.625 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.3911, allocations: 16.83 kB / 0.5645 GB, free: 1.609 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.3914, allocations: 142.3 kB / 0.5646 GB, free: 1.445 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3914, allocations: 8.375 kB / 0.5646 GB, free: 1.438 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.3914, allocations: 12.38 kB / 0.5646 GB, free: 1.426 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.3916, allocations: 73.36 kB / 0.5647 GB, free: 1.352 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3916, allocations: 0 / 0.5647 GB, free: 1.352 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.3916, allocations: 7.984 kB / 0.5647 GB, free: 1.344 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.3917, allocations: 4 kB / 0.5647 GB, free: 1.34 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.946e-05/0.3917, allocations: 35.97 kB / 0.5647 GB, free: 1.305 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000616/0.3924, allocations: 331.6 kB / 0.565 GB, free: 0.9375 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.3925, allocations: 46.5 kB / 0.5651 GB, free: 0.8828 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.38e-05/0.3925, allocations: 16.89 kB / 0.5651 GB, free: 0.8633 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.3925, allocations: 0 / 0.5651 GB, free: 0.8633 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.3927, allocations: 67.44 kB / 0.5652 GB, free: 0.7852 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.3927, allocations: 4 kB / 0.5652 GB, free: 0.7812 MB / 398.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0002512/0.3929, allocations: 89.55 kB / 0.5653 GB, free: 0.6875 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.393, allocations: 55.34 kB / 0.5653 GB, free: 0.6211 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3931, allocations: 137.8 kB / 0.5654 GB, free: 488 kB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.3931, allocations: 29.7 kB / 0.5655 GB, free: 452 kB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.317e-05/0.3932, allocations: 108.1 kB / 0.5656 GB, free: 340 kB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.3932, allocations: 15.98 kB / 0.5656 GB, free: 324 kB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.3933, allocations: 33.7 kB / 0.5656 GB, free: 284 kB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001771/0.3935, allocations: 318.8 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.196e-05/0.3935, allocations: 15.98 kB / 0.5659 GB, free: 15.94 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.882e-05/0.3936, allocations: 38.56 kB / 0.566 GB, free: 15.89 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.026e-05/0.3937, allocations: 46.52 kB / 0.566 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3937, allocations: 8 kB / 0.566 GB, free: 15.83 MB / 414.1 MB
Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001497/0.3938, allocations: 85.53 kB / 0.5661 GB, free: 15.74 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3938, allocations: 6.344 kB / 0.5661 GB, free: 15.74 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3938, allocations: 7.938 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3939, allocations: 3.938 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.324e-05/0.3939, allocations: 11.98 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3939, allocations: 0 / 0.5661 GB, free: 15.71 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.119e-05/0.394, allocations: 8 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.394, allocations: 4 kB / 0.5662 GB, free: 15.7 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001047/0.3941, allocations: 121.8 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.3941, allocations: 8.141 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.3942, allocations: 16.64 kB / 0.5663 GB, free: 15.54 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3942, allocations: 7.938 kB / 0.5663 GB, free: 15.54 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3942, allocations: 0 / 0.5663 GB, free: 15.54 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3942, allocations: 0 / 0.5663 GB, free: 15.54 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003906/0.3946, allocations: 321.5 kB / 0.5666 GB, free: 15.17 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3946, allocations: 0 / 0.5666 GB, free: 15.17 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.3946, allocations: 7.938 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3946, allocations: 4 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3946, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3946, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3946, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.3949, allocations: 195.4 kB / 0.5668 GB, free: 14.95 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/0.3949, allocations: 11.98 kB / 0.5668 GB, free: 14.94 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.3949, allocations: 3.984 kB / 0.5668 GB, free: 14.94 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.395, allocations: 8.062 kB / 0.5668 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.3951, allocations: 11.98 kB / 0.5668 GB, free: 14.92 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.3951, allocations: 4 kB / 0.5668 GB, free: 14.91 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 8.574e-05/0.3952, allocations: 107.2 kB / 0.5669 GB, free: 14.81 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.3952, allocations: 3.938 kB / 0.5669 GB, free: 14.8 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002312/0.3954, allocations: 15.94 kB / 0.567 GB, free: 14.79 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,fallingEdge.not_u,booleanPulse.pulseStart)
 * Number of discrete states: 1 (fallingEdge.not_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.0001251/0.3955, allocations: 99.19 kB / 0.5671 GB, free: 14.68 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001613/0.3957, allocations: 43.92 kB / 0.5671 GB, free: 14.64 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3957, allocations: 4.125 kB / 0.5671 GB, free: 14.64 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.525e-05/0.3957, allocations: 24.69 kB / 0.5671 GB, free: 14.61 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.3961, allocations: 19.92 kB / 0.5671 GB, free: 14.59 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.3966, allocations: 198.6 kB / 0.5673 GB, free: 14.38 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.397, allocations: 0.7007 MB / 0.568 GB, free: 13.65 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 3.529e-05/0.397, allocations: 8.438 kB / 0.568 GB, free: 13.64 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.397, allocations: 15.44 kB / 0.568 GB, free: 13.62 MB / 414.1 MB
Notification: Performance of SimCode: time 7.32e-07/0.397, allocations: 0 / 0.568 GB, free: 13.62 MB / 414.1 MB
Notification: Performance of Templates: time 0.004096/0.4011, allocations: 0.9662 MB / 0.569 GB, free: 12.66 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.198866292834282]