Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.00136/0.00136, allocations: 110.5 kB / 21.22 MB, free: 0.5156 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.001782/0.001782, allocations: 208 kB / 24.54 MB, free: 3.906 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.709/1.709, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold")
translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex 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.
Warning: Requested package ModelicaServices 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.002783/0.002783, allocations: 72.7 kB / 379 MB, free: 2.742 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3617, allocations: 53.36 MB / 432.4 MB, free: 6.984 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003941/0.3657, allocations: 1.954 MB / 434.4 MB, free: 5.023 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002622/0.3683, allocations: 1.329 MB / 435.7 MB, free: 3.688 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.3685, allocations: 11.88 kB / 435.7 MB, free: 3.676 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004303/0.3689, allocations: 63.67 kB / 435.8 MB, free: 3.613 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.3694, allocations: 135.4 kB / 435.9 MB, free: 3.48 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000808/0.3702, allocations: 234.5 kB / 436.1 MB, free: 3.254 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002945/0.3705, allocations: 187.5 kB / 436.3 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3706, allocations: 24.69 kB / 436.3 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.3707, allocations: 87.56 kB / 436.4 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.3709, allocations: 83.67 kB / 436.5 MB, free: 2.879 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.3709, allocations: 12 kB / 436.5 MB, free: 2.867 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.3711, allocations: 79.88 kB / 436.6 MB, free: 2.789 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.3712, allocations: 55.77 kB / 436.6 MB, free: 2.734 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.3713, allocations: 79.42 kB / 436.7 MB, free: 2.656 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.3717, allocations: 254.6 kB / 437 MB, free: 2.41 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3717, allocations: 3.938 kB / 437 MB, free: 2.406 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.332e-06/0.3717, allocations: 4 kB / 437 MB, free: 2.402 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.392e-06/0.3717, allocations: 4 kB / 437 MB, free: 2.398 MB / 334.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.0008263/0.3725, allocations: 478.5 kB / 437.4 MB, free: 1.895 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3726, allocations: 8.031 kB / 437.4 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.589e-05/0.3727, allocations: 28.75 kB / 437.5 MB, free: 1.859 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.3731, allocations: 233.5 kB / 437.7 MB, free: 1.605 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.3731, allocations: 8.312 kB / 437.7 MB, free: 1.598 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.3732, allocations: 16.12 kB / 437.7 MB, free: 1.582 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.3736, allocations: 172.4 kB / 437.9 MB, free: 1.383 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3736, allocations: 0 / 437.9 MB, free: 1.383 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.3736, allocations: 4 kB / 437.9 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3736, allocations: 0 / 437.9 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.3738, allocations: 47.91 kB / 437.9 MB, free: 1.332 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.3744, allocations: 441.5 kB / 438.4 MB, free: 0.8477 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.3747, allocations: 146.5 kB / 438.5 MB, free: 0.668 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3748, allocations: 59.42 kB / 438.6 MB, free: 0.5977 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.3748, allocations: 7.984 kB / 438.6 MB, free: 0.5898 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.375, allocations: 101 kB / 438.7 MB, free: 484 kB / 334.1 MB
Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.375, allocations: 0 / 438.7 MB, free: 484 kB / 334.1 MB
Notification: Performance of matching and sorting (n=11): time 0.0004545/0.3755, allocations: 177.6 kB / 438.9 MB, free: 300 kB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.3756, allocations: 183.9 kB / 439 MB, free: 72 kB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.3761, allocations: 340.2 kB / 439.4 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3761, allocations: 25.7 kB / 439.4 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3762, allocations: 136.3 kB / 439.5 MB, free: 15.56 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.3762, allocations: 16.28 kB / 439.5 MB, free: 15.54 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.3763, allocations: 37.7 kB / 439.6 MB, free: 15.5 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001603/0.3764, allocations: 338.7 kB / 439.9 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.671e-05/0.3765, allocations: 27.98 kB / 439.9 MB, free: 15.13 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.3767, allocations: 99.7 kB / 440 MB, free: 15.01 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.3768, allocations: 93.08 kB / 440.1 MB, free: 14.9 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.3768, allocations: 0 / 440.1 MB, free: 14.9 MB / 350.1 MB
Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002605/0.3771, allocations: 141.4 kB / 440.3 MB, free: 14.75 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3771, allocations: 8 kB / 440.3 MB, free: 14.75 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3771, allocations: 0 / 440.3 MB, free: 14.75 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3771, allocations: 4 kB / 440.3 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3773, allocations: 27.92 kB / 440.3 MB, free: 14.71 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.3773, allocations: 4 kB / 440.3 MB, free: 14.71 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-05/0.3774, allocations: 15.83 kB / 440.3 MB, free: 14.7 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.3774, allocations: 4 kB / 440.3 MB, free: 14.69 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 6
 * Number of states: 0 ()
 * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (13):
 * Single equations (assignments): 13
 * 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.0001651/0.3775, allocations: 165.8 kB / 440.5 MB, free: 14.52 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.3776, allocations: 65.56 kB / 440.6 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.3779, allocations: 123.3 kB / 440.7 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3779, allocations: 4 kB / 440.7 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3779, allocations: 3.938 kB / 440.7 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.378, allocations: 3.938 kB / 440.7 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002515/0.3782, allocations: 216.6 kB / 440.9 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3782, allocations: 192 / 440.9 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.329e-05/0.3783, allocations: 24.05 kB / 440.9 MB, free: 14.03 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.3783, allocations: 4 kB / 440.9 MB, free: 14.03 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3783, allocations: 0 / 440.9 MB, free: 14.03 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3783, allocations: 4 kB / 440.9 MB, free: 14.02 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3783, allocations: 0 / 440.9 MB, free: 14.02 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.3786, allocations: 187.4 kB / 441.1 MB, free: 13.81 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3787, allocations: 47.77 kB / 441.2 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.3787, allocations: 4 kB / 441.2 MB, free: 13.76 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.578e-05/0.3788, allocations: 4 kB / 441.2 MB, free: 13.76 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.3789, allocations: 11.92 kB / 441.2 MB, free: 13.75 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.3789, allocations: 15.98 kB / 441.2 MB, free: 13.73 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002717/0.3792, allocations: 247 kB / 441.4 MB, free: 13.49 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3792, allocations: 0 / 441.4 MB, free: 13.49 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002827/0.3794, allocations: 35.98 kB / 441.5 MB, free: 13.46 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u)
 * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (11):
 * Single equations (assignments): 9
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.001627/0.3811, allocations: 426.8 kB / 441.9 MB, free: 13.19 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002745/0.3814, allocations: 83.89 kB / 442 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3814, allocations: 0 / 442 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.3815, allocations: 31.92 kB / 442 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.3819, allocations: 89.36 kB / 442.1 MB, free: 12.98 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007669/0.3827, allocations: 386.7 kB / 442.5 MB, free: 12.57 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.3831, allocations: 0.7476 MB / 443.2 MB, free: 11.8 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 9.698e-05/0.3832, allocations: 25.64 kB / 443.2 MB, free: 11.77 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.3833, allocations: 31.38 kB / 443.3 MB, free: 11.74 MB / 350.1 MB
Notification: Performance of SimCode: time 7.11e-07/0.3833, allocations: 0 / 443.3 MB, free: 11.74 MB / 350.1 MB
Notification: Performance of Templates: time 0.00791/0.3912, allocations: 3.048 MB / 446.3 MB, free: 8.727 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.259863725863397]