Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001211/0.001211, allocations: 109 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.001535/0.001535, allocations: 213.9 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.354/1.354, allocations: 230.3 MB / 258 MB, free: 8.227 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.89 MB / 361.3 MB, free: 4.488 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 75.88 kB / 0.497 GB, free: 7.648 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2653, allocations: 66.03 MB / 0.5615 GB, free: 4.641 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002902/0.2682, allocations: 1.566 MB / 0.563 GB, free: 3.066 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001295/0.2695, allocations: 0.561 MB / 0.5636 GB, free: 2.5 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.554e-05/0.2696, allocations: 0 / 0.5636 GB, free: 2.5 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.872e-05/0.2696, allocations: 11.88 kB / 0.5636 GB, free: 2.488 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.2698, allocations: 19.84 kB / 0.5636 GB, free: 2.469 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.27, allocations: 51.88 kB / 0.5637 GB, free: 2.418 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001593/0.2702, allocations: 87.7 kB / 0.5638 GB, free: 2.332 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.102e-05/0.2703, allocations: 12 kB / 0.5638 GB, free: 2.32 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.2705, allocations: 47.83 kB / 0.5638 GB, free: 2.273 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.944e-05/0.2706, allocations: 39.84 kB / 0.5639 GB, free: 2.234 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.2706, allocations: 8 kB / 0.5639 GB, free: 2.227 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.159e-05/0.2706, allocations: 15.98 kB / 0.5639 GB, free: 2.211 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.3e-05/0.2707, allocations: 27.91 kB / 0.5639 GB, free: 2.184 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.326e-05/0.2707, allocations: 35.8 kB / 0.5639 GB, free: 2.148 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.2709, allocations: 78.23 kB / 0.564 GB, free: 2.078 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2709, allocations: 4 kB / 0.564 GB, free: 2.074 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.183e-06/0.2709, allocations: 0 / 0.564 GB, free: 2.074 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 7.344e-06/0.2709, allocations: 7.938 kB / 0.564 GB, free: 2.066 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.0006419/0.2715, allocations: 334 kB / 0.5643 GB, free: 1.711 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2716, allocations: 8.031 kB / 0.5644 GB, free: 1.703 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.2717, allocations: 20.88 kB / 0.5644 GB, free: 1.684 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.2719, allocations: 134.3 kB / 0.5645 GB, free: 1.527 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.272, allocations: 8.359 kB / 0.5645 GB, free: 1.52 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.272, allocations: 12.38 kB / 0.5645 GB, free: 1.508 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.2722, allocations: 85.95 kB / 0.5646 GB, free: 1.418 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.2722, allocations: 0 / 0.5646 GB, free: 1.418 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.2722, allocations: 4 kB / 0.5646 GB, free: 1.414 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.2722, allocations: 4 kB / 0.5646 GB, free: 1.41 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.2724, allocations: 55.91 kB / 0.5647 GB, free: 1.355 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.2729, allocations: 299.7 kB / 0.5649 GB, free: 1.02 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/0.2731, allocations: 86.52 kB / 0.565 GB, free: 0.9258 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.2732, allocations: 40.84 kB / 0.5651 GB, free: 0.8828 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2732, allocations: 0 / 0.5651 GB, free: 0.8828 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.2734, allocations: 107.3 kB / 0.5652 GB, free: 0.7656 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.2734, allocations: 0 / 0.5652 GB, free: 0.7656 MB / 398.1 MB
Notification: Performance of matching and sorting (n=14): time 0.0004753/0.2739, allocations: 197.1 kB / 0.5654 GB, free: 0.5703 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.274, allocations: 67.39 kB / 0.5654 GB, free: 0.4922 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2741, allocations: 121.8 kB / 0.5655 GB, free: 372 kB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.2741, allocations: 29.7 kB / 0.5656 GB, free: 336 kB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.2741, allocations: 92.38 kB / 0.5657 GB, free: 236 kB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.2742, allocations: 35.73 kB / 0.5657 GB, free: 200 kB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.2742, allocations: 41.7 kB / 0.5657 GB, free: 152 kB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001444/0.2744, allocations: 322.8 kB / 0.566 GB, free: 15.82 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2745, allocations: 39.92 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2746, allocations: 84.83 kB / 0.5662 GB, free: 15.69 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.2748, allocations: 116.4 kB / 0.5663 GB, free: 15.56 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2748, allocations: 3.938 kB / 0.5663 GB, free: 15.56 MB / 414.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003036/0.2751, allocations: 161.5 kB / 0.5664 GB, free: 15.39 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2752, allocations: 4 kB / 0.5664 GB, free: 15.39 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.2752, allocations: 0 / 0.5664 GB, free: 15.39 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2752, allocations: 4 kB / 0.5664 GB, free: 15.39 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.2753, allocations: 23.98 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.996e-06/0.2753, allocations: 12.06 kB / 0.5665 GB, free: 15.35 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.582e-05/0.2754, allocations: 7.953 kB / 0.5665 GB, free: 15.34 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.2754, allocations: 8 kB / 0.5665 GB, free: 15.34 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.0001119/0.2755, allocations: 129.1 kB / 0.5666 GB, free: 15.2 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.2755, allocations: 7.953 kB / 0.5666 GB, free: 15.19 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.2755, allocations: 16.44 kB / 0.5666 GB, free: 15.17 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2755, allocations: 0 / 0.5666 GB, free: 15.17 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2756, allocations: 3.938 kB / 0.5666 GB, free: 15.17 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2756, allocations: 3.938 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005717/0.2761, allocations: 432.3 kB / 0.567 GB, free: 14.7 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2761, allocations: 0 / 0.567 GB, free: 14.7 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.474e-05/0.2762, allocations: 7.938 kB / 0.5671 GB, free: 14.69 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.2762, allocations: 7.984 kB / 0.5671 GB, free: 14.68 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2762, allocations: 8 kB / 0.5671 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2762, allocations: 0 / 0.5671 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2762, allocations: 0 / 0.5671 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.2766, allocations: 259.4 kB / 0.5673 GB, free: 14.4 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.671e-05/0.2766, allocations: 11.89 kB / 0.5673 GB, free: 14.39 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.2766, allocations: 3.984 kB / 0.5673 GB, free: 14.39 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.2767, allocations: 15.98 kB / 0.5673 GB, free: 14.37 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.2768, allocations: 7.984 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.2768, allocations: 4 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 6.135e-05/0.2768, allocations: 95.27 kB / 0.5675 GB, free: 14.27 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.2768, allocations: 4 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0002563/0.2771, allocations: 24 kB / 0.5675 GB, free: 14.24 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.0001016/0.2772, allocations: 99.7 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002856/0.2775, allocations: 111.8 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2775, allocations: 0 / 0.5677 GB, free: 14.02 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.2776, allocations: 39.98 kB / 0.5677 GB, free: 13.98 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.2779, allocations: 19.19 kB / 0.5677 GB, free: 13.97 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.2783, allocations: 217.3 kB / 0.5679 GB, free: 13.73 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.2786, allocations: 0.6924 MB / 0.5686 GB, free: 13.01 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 4.234e-05/0.2786, allocations: 8.984 kB / 0.5686 GB, free: 13 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.2787, allocations: 19.42 kB / 0.5686 GB, free: 12.98 MB / 414.1 MB
Notification: Performance of SimCode: time 4.51e-07/0.2787, allocations: 8 kB / 0.5687 GB, free: 12.97 MB / 414.1 MB
Notification: Performance of Templates: time 0.003737/0.2824, allocations: 1.097 MB / 0.5697 GB, free: 11.88 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 4.521600433625281]