Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.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.001297/0.001297, allocations: 109 kB / 21.23 MB, free: 0.6719 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.001688/0.001688, allocations: 209.2 kB / 24.53 MB, free: 4.035 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.58/1.58, 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.228/0.228, allocations: 46.93 MB / 361.4 MB, free: 4.398 MB / 286.1 MB
"
[Timeout remaining time 180]
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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold")
translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold") [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.002327/0.002327, allocations: 79.88 kB / 0.4972 GB, free: 7.523 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3683, allocations: 66.04 MB / 0.5616 GB, free: 4.562 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002885/0.3712, allocations: 1.554 MB / 0.5632 GB, free: 3 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001046/0.3722, allocations: 0.5688 MB / 0.5637 GB, free: 2.426 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 5.939e-05/0.3723, allocations: 3.938 kB / 0.5637 GB, free: 2.422 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.075e-05/0.3723, allocations: 7.938 kB / 0.5637 GB, free: 2.414 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.215e-05/0.3724, allocations: 11.86 kB / 0.5637 GB, free: 2.402 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.3727, allocations: 51.88 kB / 0.5638 GB, free: 2.352 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001539/0.3728, allocations: 95.69 kB / 0.5639 GB, free: 2.258 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 8.997e-05/0.3729, allocations: 8 kB / 0.5639 GB, free: 2.25 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.3731, allocations: 43.84 kB / 0.5639 GB, free: 2.207 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.294e-05/0.3731, allocations: 43.83 kB / 0.564 GB, free: 2.164 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.3732, allocations: 8 kB / 0.564 GB, free: 2.156 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.347e-05/0.3732, allocations: 8 kB / 0.564 GB, free: 2.148 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.3732, allocations: 35.84 kB / 0.564 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.914e-05/0.3733, allocations: 39.78 kB / 0.5641 GB, free: 2.074 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3735, allocations: 82.23 kB / 0.5641 GB, free: 2 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3735, allocations: 0 / 0.5641 GB, free: 2 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.182e-06/0.3735, allocations: 0 / 0.5641 GB, free: 2 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.187e-06/0.3735, allocations: 0 / 0.5641 GB, free: 2 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: 14
 * Number of variables: 14
Notification: Performance of Generate backend data structure: time 0.000666/0.3741, allocations: 334 kB / 0.5645 GB, free: 1.645 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3742, allocations: 8.031 kB / 0.5645 GB, free: 1.637 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.3743, allocations: 20.88 kB / 0.5645 GB, free: 1.617 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.3745, allocations: 134.3 kB / 0.5646 GB, free: 1.461 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3745, allocations: 8.375 kB / 0.5646 GB, free: 1.453 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.3746, allocations: 12.3 kB / 0.5646 GB, free: 1.441 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.3748, allocations: 93.95 kB / 0.5647 GB, free: 1.344 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3748, allocations: 0 / 0.5647 GB, free: 1.344 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.3748, allocations: 4 kB / 0.5647 GB, free: 1.34 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3748, allocations: 4 kB / 0.5647 GB, free: 1.336 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.3749, allocations: 47.97 kB / 0.5648 GB, free: 1.289 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.3755, allocations: 303.7 kB / 0.5651 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.3757, allocations: 90.47 kB / 0.5652 GB, free: 0.8516 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.687e-05/0.3758, allocations: 40.84 kB / 0.5652 GB, free: 0.8086 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.3758, allocations: 4 kB / 0.5652 GB, free: 0.8047 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.376, allocations: 99.36 kB / 0.5653 GB, free: 0.6953 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.376, allocations: 0 / 0.5653 GB, free: 0.6953 MB / 398.1 MB
Notification: Performance of matching and sorting (n=14): time 0.0004838/0.3765, allocations: 201.6 kB / 0.5655 GB, free: 0.4922 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.3766, allocations: 59.41 kB / 0.5655 GB, free: 432 kB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.3767, allocations: 121.8 kB / 0.5657 GB, free: 300 kB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3767, allocations: 33.7 kB / 0.5657 GB, free: 260 kB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/0.3767, allocations: 96.38 kB / 0.5658 GB, free: 156 kB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.3768, allocations: 35.72 kB / 0.5658 GB, free: 120 kB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.089e-05/0.3769, allocations: 37.7 kB / 0.5659 GB, free: 76 kB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001712/0.377, allocations: 326.8 kB / 0.5662 GB, free: 15.75 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.3772, allocations: 35.98 kB / 0.5662 GB, free: 15.71 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3773, allocations: 81.06 kB / 0.5663 GB, free: 15.62 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3775, allocations: 127.6 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3775, allocations: 4 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002786/0.3778, allocations: 153.5 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3778, allocations: 11.98 kB / 0.5666 GB, free: 15.31 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3778, allocations: 0 / 0.5666 GB, free: 15.31 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3778, allocations: 4 kB / 0.5666 GB, free: 15.31 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3779, allocations: 19.92 kB / 0.5666 GB, free: 15.29 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3779, allocations: 12.06 kB / 0.5666 GB, free: 15.28 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.107e-05/0.378, allocations: 11.95 kB / 0.5666 GB, free: 15.27 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.378, allocations: 4 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (21):
 * Single equations (assignments): 21
 * 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.0001088/0.3781, allocations: 127.8 kB / 0.5667 GB, free: 15.12 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.3781, allocations: 15.94 kB / 0.5667 GB, free: 15.11 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.3782, allocations: 12.42 kB / 0.5668 GB, free: 15.09 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3782, allocations: 0 / 0.5668 GB, free: 15.09 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3782, allocations: 7.938 kB / 0.5668 GB, free: 15.09 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3782, allocations: 0 / 0.5668 GB, free: 15.09 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.3788, allocations: 425.5 kB / 0.5672 GB, free: 14.62 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3788, allocations: 0 / 0.5672 GB, free: 14.62 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-05/0.3788, allocations: 19.81 kB / 0.5672 GB, free: 14.6 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3788, allocations: 0 / 0.5672 GB, free: 14.6 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.3788, allocations: 3.984 kB / 0.5672 GB, free: 14.6 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.729e-06/0.3788, allocations: 4 kB / 0.5672 GB, free: 14.59 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3788, allocations: 0 / 0.5672 GB, free: 14.59 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.3792, allocations: 255.5 kB / 0.5674 GB, free: 14.33 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.3792, allocations: 15.89 kB / 0.5675 GB, free: 14.31 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.3792, allocations: 7.984 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.3793, allocations: 4 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.3794, allocations: 11.98 kB / 0.5675 GB, free: 14.29 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.3794, allocations: 7.984 kB / 0.5675 GB, free: 14.28 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 6.274e-05/0.3795, allocations: 91.27 kB / 0.5676 GB, free: 14.19 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3795, allocations: 8 kB / 0.5676 GB, free: 14.18 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002404/0.3797, allocations: 23.94 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c)
 * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (14):
 * Single equations (assignments): 7
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 7
 * 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.0001226/0.3798, allocations: 103.7 kB / 0.5677 GB, free: 14.05 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.000306/0.3801, allocations: 103.1 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3801, allocations: 0 / 0.5678 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.3803, allocations: 47.92 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.3805, allocations: 20.23 kB / 0.5679 GB, free: 13.89 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004591/0.381, allocations: 207.7 kB / 0.5681 GB, free: 13.66 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.3813, allocations: 0.6924 MB / 0.5687 GB, free: 12.94 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.71e-05/0.3814, allocations: 12.97 kB / 0.5688 GB, free: 12.92 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.3814, allocations: 11.44 kB / 0.5688 GB, free: 12.91 MB / 414.1 MB
Notification: Performance of SimCode: time 2.9e-07/0.3814, allocations: 4 kB / 0.5688 GB, free: 12.91 MB / 414.1 MB
Notification: Performance of Templates: time 0.004107/0.3855, allocations: 1.109 MB / 0.5698 GB, free: 11.8 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.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.198704177513719]