Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 106 kB / 21.22 MB, free: 0.6758 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 189.2 kB / 24.51 MB, free: 4.051 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.2398/0.2398, allocations: 44.91 MB / 353.5 MB, free: 11.87 MB / 286.1 MB
"
[Timeout remaining time 179]
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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator")
translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 63.91 kB / 497.7 MB, free: 1.074 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4221, allocations: 64.29 MB / 0.5488 GB, free: 13.18 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.004303/0.4264, allocations: 1.636 MB / 0.5504 GB, free: 11.9 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001078/0.4275, allocations: 499.7 kB / 0.5509 GB, free: 11.51 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.4276, allocations: 2.25 kB / 0.5509 GB, free: 11.51 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.4277, allocations: 11.86 kB / 0.5509 GB, free: 11.5 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.4278, allocations: 18.11 kB / 0.5509 GB, free: 11.48 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.4281, allocations: 39.19 kB / 0.5509 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001965/0.4283, allocations: 79.33 kB / 0.551 GB, free: 11.41 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.4284, allocations: 30.58 kB / 0.551 GB, free: 11.39 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 7.396e-05/0.4285, allocations: 35.48 kB / 0.5511 GB, free: 11.36 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.916e-05/0.4286, allocations: 34.12 kB / 0.5511 GB, free: 11.34 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.4286, allocations: 5.969 kB / 0.5511 GB, free: 11.34 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.849e-05/0.4286, allocations: 7.625 kB / 0.5511 GB, free: 11.34 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.4286, allocations: 14.97 kB / 0.5511 GB, free: 11.32 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.832e-05/0.4287, allocations: 31.89 kB / 0.5512 GB, free: 11.3 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.4289, allocations: 81.11 kB / 0.5512 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4289, allocations: 0 / 0.5512 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.412e-06/0.4289, allocations: 1.281 kB / 0.5512 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 6.141e-06/0.4289, allocations: 0 / 0.5512 GB, free: 11.24 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.0006961/0.4296, allocations: 326.9 kB / 0.5516 GB, free: 10.92 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4297, allocations: 14.58 kB / 0.5516 GB, free: 10.92 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.216e-05/0.4297, allocations: 10.27 kB / 0.5516 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.4301, allocations: 132.9 kB / 0.5517 GB, free: 10.77 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.4301, allocations: 12.81 kB / 0.5517 GB, free: 10.76 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.27e-05/0.4301, allocations: 12.56 kB / 0.5517 GB, free: 10.75 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.4303, allocations: 71.98 kB / 0.5518 GB, free: 10.7 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4303, allocations: 1.312 kB / 0.5518 GB, free: 10.7 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.4303, allocations: 4 kB / 0.5518 GB, free: 10.7 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.4303, allocations: 3.062 kB / 0.5518 GB, free: 10.7 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.4304, allocations: 38.84 kB / 0.5518 GB, free: 10.68 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007006/0.4311, allocations: 328.2 kB / 0.5522 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.4313, allocations: 43.16 kB / 0.5522 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.671e-05/0.4313, allocations: 14.67 kB / 0.5522 GB, free: 10.31 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.4313, allocations: 5.266 kB / 0.5522 GB, free: 10.3 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/0.4314, allocations: 66.5 kB / 0.5523 GB, free: 10.24 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.4314, allocations: 4 kB / 0.5523 GB, free: 10.24 MB / 398.1 MB
Notification: Performance of matching and sorting (n=7): time 0.0002349/0.4317, allocations: 95.05 kB / 0.5524 GB, free: 10.17 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.4317, allocations: 53 kB / 0.5524 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.4318, allocations: 137 kB / 0.5526 GB, free: 9.988 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.4319, allocations: 27.02 kB / 0.5526 GB, free: 9.957 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.432, allocations: 104.4 kB / 0.5527 GB, free: 9.855 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.432, allocations: 18.27 kB / 0.5527 GB, free: 9.84 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.432, allocations: 29.92 kB / 0.5527 GB, free: 9.812 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002141/0.4322, allocations: 320.9 kB / 0.553 GB, free: 9.492 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.15e-05/0.4323, allocations: 17.48 kB / 0.5531 GB, free: 9.484 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 6.274e-05/0.4323, allocations: 45.31 kB / 0.5531 GB, free: 9.441 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.4324, allocations: 45.64 kB / 0.5531 GB, free: 9.406 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4324, allocations: 0 / 0.5531 GB, free: 9.406 MB / 398.1 MB
Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001654/0.4326, allocations: 91.16 kB / 0.5532 GB, free: 9.344 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.4326, allocations: 6.125 kB / 0.5532 GB, free: 9.344 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.4326, allocations: 1.156 kB / 0.5532 GB, free: 9.344 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4327, allocations: 5.031 kB / 0.5532 GB, free: 9.34 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.4327, allocations: 10.91 kB / 0.5533 GB, free: 9.336 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4327, allocations: 5.047 kB / 0.5533 GB, free: 9.332 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.4328, allocations: 12.36 kB / 0.5533 GB, free: 9.324 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.4328, allocations: 6.344 kB / 0.5533 GB, free: 9.32 MB / 398.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.0001078/0.4329, allocations: 119.2 kB / 0.5534 GB, free: 9.199 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.4329, allocations: 11.23 kB / 0.5534 GB, free: 9.191 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.433, allocations: 18.8 kB / 0.5534 GB, free: 9.172 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.433, allocations: 5 kB / 0.5534 GB, free: 9.168 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.433, allocations: 1.062 kB / 0.5534 GB, free: 9.168 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.433, allocations: 0 / 0.5534 GB, free: 9.168 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.4333, allocations: 321.2 kB / 0.5537 GB, free: 8.848 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4333, allocations: 0 / 0.5537 GB, free: 8.848 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.557e-05/0.4334, allocations: 3.531 kB / 0.5537 GB, free: 8.848 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4334, allocations: 0 / 0.5537 GB, free: 8.848 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.4334, allocations: 5.125 kB / 0.5537 GB, free: 8.844 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4334, allocations: 1.094 kB / 0.5537 GB, free: 8.844 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.4334, allocations: 0 / 0.5537 GB, free: 8.844 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.4337, allocations: 201.3 kB / 0.5539 GB, free: 8.668 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.4337, allocations: 19.06 kB / 0.5539 GB, free: 8.652 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.4337, allocations: 5.078 kB / 0.554 GB, free: 8.648 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.977e-05/0.4338, allocations: 4 kB / 0.554 GB, free: 8.648 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.4338, allocations: 11.05 kB / 0.554 GB, free: 8.641 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.4338, allocations: 5.5 kB / 0.554 GB, free: 8.637 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 8.328e-05/0.4339, allocations: 109.9 kB / 0.5541 GB, free: 8.547 MB / 398.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.4339, allocations: 0 / 0.5541 GB, free: 8.547 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002313/0.4342, allocations: 12.53 kB / 0.5541 GB, free: 8.547 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,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.0001032/0.4343, allocations: 95.12 kB / 0.5542 GB, free: 8.457 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001431/0.4344, allocations: 41.58 kB / 0.5542 GB, free: 8.441 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4344, allocations: 1.125 kB / 0.5542 GB, free: 8.441 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.493e-05/0.4345, allocations: 20.33 kB / 0.5542 GB, free: 8.434 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.4348, allocations: 31.62 kB / 0.5543 GB, free: 8.414 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005547/0.4353, allocations: 212.4 kB / 0.5545 GB, free: 8.242 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.4357, allocations: 0.6966 MB / 0.5552 GB, free: 7.535 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 4.04e-05/0.4357, allocations: 13.38 kB / 0.5552 GB, free: 7.527 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.4357, allocations: 16.66 kB / 0.5552 GB, free: 7.516 MB / 398.1 MB
Notification: Performance of SimCode: time 3.91e-07/0.4357, allocations: 0 / 0.5552 GB, free: 7.516 MB / 398.1 MB
Notification: Performance of Templates: time 0.004045/0.4398, allocations: 0.9936 MB / 0.5562 GB, free: 7.016 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.39027604367584]