Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.001512/0.001512, allocations: 110 kB / 21.23 MB, free: 0.6602 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.001786/0.001786, allocations: 186.2 kB / 24.51 MB, free: 4.035 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.545/1.545, allocations: 225.6 MB / 253.3 MB, free: 13 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.2368/0.2368, allocations: 44.91 MB / 353.5 MB, free: 11.82 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.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.0.0_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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002754/0.002754, allocations: 67.88 kB / 497.7 MB, free: 1.004 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4469, allocations: 64.29 MB / 0.5488 GB, free: 13.32 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003433/0.4504, allocations: 1.545 MB / 0.5503 GB, free: 12.11 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001056/0.4514, allocations: 0.4931 MB / 0.5508 GB, free: 11.72 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 6.824e-05/0.4515, allocations: 9.5 kB / 0.5508 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.681e-05/0.4515, allocations: 3.938 kB / 0.5508 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.737e-05/0.4516, allocations: 13.33 kB / 0.5508 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.4518, allocations: 42.92 kB / 0.5509 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001537/0.452, allocations: 86.95 kB / 0.5509 GB, free: 11.61 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.4521, allocations: 8.562 kB / 0.5509 GB, free: 11.61 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.4523, allocations: 47.11 kB / 0.551 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.4524, allocations: 38.59 kB / 0.551 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.4524, allocations: 7.375 kB / 0.551 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.023e-05/0.4524, allocations: 11.94 kB / 0.551 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.4524, allocations: 19.16 kB / 0.5511 GB, free: 11.53 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.685e-05/0.4525, allocations: 37.05 kB / 0.5511 GB, free: 11.5 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.4527, allocations: 77.77 kB / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4527, allocations: 0 / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.843e-06/0.4527, allocations: 0 / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.266e-05/0.4527, allocations: 0 / 0.5512 GB, free: 11.45 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.0007819/0.4535, allocations: 329.4 kB / 0.5515 GB, free: 11.13 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.4535, allocations: 15.05 kB / 0.5515 GB, free: 11.13 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.4536, allocations: 8.953 kB / 0.5515 GB, free: 11.12 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.4537, allocations: 115.6 kB / 0.5516 GB, free: 10.99 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.4537, allocations: 11.69 kB / 0.5516 GB, free: 10.98 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.4538, allocations: 9.734 kB / 0.5516 GB, free: 10.98 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.454, allocations: 91.97 kB / 0.5517 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.454, allocations: 0 / 0.5517 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.454, allocations: 5.234 kB / 0.5517 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.454, allocations: 5.188 kB / 0.5517 GB, free: 10.9 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.4542, allocations: 40.89 kB / 0.5518 GB, free: 10.89 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006152/0.4548, allocations: 301.9 kB / 0.5521 GB, free: 10.58 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.455, allocations: 81.75 kB / 0.5521 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.777e-05/0.4551, allocations: 33.94 kB / 0.5522 GB, free: 10.51 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.4551, allocations: 9.109 kB / 0.5522 GB, free: 10.5 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.4554, allocations: 102.5 kB / 0.5523 GB, free: 10.42 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.4554, allocations: 0 / 0.5523 GB, free: 10.42 MB / 398.1 MB
Notification: Performance of matching and sorting (n=14): time 0.0004879/0.4559, allocations: 183.9 kB / 0.5525 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.4559, allocations: 59.27 kB / 0.5525 GB, free: 10.26 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.456, allocations: 122.9 kB / 0.5526 GB, free: 10.14 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.4561, allocations: 32.8 kB / 0.5527 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.749e-05/0.4561, allocations: 90.81 kB / 0.5528 GB, free: 10.01 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.888e-05/0.4562, allocations: 37.73 kB / 0.5528 GB, free: 9.98 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.4563, allocations: 37.42 kB / 0.5528 GB, free: 9.949 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001638/0.4564, allocations: 326.2 kB / 0.5531 GB, free: 9.625 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.351e-05/0.4565, allocations: 30.8 kB / 0.5532 GB, free: 9.613 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.4566, allocations: 86.47 kB / 0.5532 GB, free: 9.535 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.4569, allocations: 125.7 kB / 0.5534 GB, free: 9.441 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4569, allocations: 0 / 0.5534 GB, free: 9.441 MB / 398.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002981/0.4572, allocations: 157.7 kB / 0.5535 GB, free: 9.352 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.4572, allocations: 6.281 kB / 0.5535 GB, free: 9.352 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4572, allocations: 1.156 kB / 0.5535 GB, free: 9.352 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.4572, allocations: 2.312 kB / 0.5535 GB, free: 9.352 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.4574, allocations: 27.48 kB / 0.5536 GB, free: 9.34 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.4574, allocations: 2.375 kB / 0.5536 GB, free: 9.34 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.603e-05/0.4574, allocations: 16.81 kB / 0.5536 GB, free: 9.328 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.4574, allocations: 5.281 kB / 0.5536 GB, free: 9.328 MB / 398.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: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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)
 * 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.0001524/0.4576, allocations: 135.3 kB / 0.5537 GB, free: 9.191 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.4576, allocations: 9.328 kB / 0.5537 GB, free: 9.188 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.4577, allocations: 13.66 kB / 0.5537 GB, free: 9.172 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.4577, allocations: 10.16 kB / 0.5537 GB, free: 9.164 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4577, allocations: 0 / 0.5537 GB, free: 9.164 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4577, allocations: 3.938 kB / 0.5537 GB, free: 9.16 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006141/0.4583, allocations: 407.8 kB / 0.5541 GB, free: 8.805 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.4583, allocations: 8.938 kB / 0.5541 GB, free: 8.797 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.663e-05/0.4584, allocations: 9.297 kB / 0.5541 GB, free: 8.793 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.4584, allocations: 1.406 kB / 0.5541 GB, free: 8.793 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.4584, allocations: 1.156 kB / 0.5542 GB, free: 8.793 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4584, allocations: 1.094 kB / 0.5542 GB, free: 8.793 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4584, allocations: 4 kB / 0.5542 GB, free: 8.789 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.4588, allocations: 256.3 kB / 0.5544 GB, free: 8.598 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.245e-05/0.4588, allocations: 15.11 kB / 0.5544 GB, free: 8.586 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/0.4588, allocations: 6.266 kB / 0.5544 GB, free: 8.582 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.4589, allocations: 4.75 kB / 0.5544 GB, free: 8.582 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.459, allocations: 11.92 kB / 0.5544 GB, free: 8.574 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.459, allocations: 7.641 kB / 0.5544 GB, free: 8.57 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 6.274e-05/0.4591, allocations: 91.03 kB / 0.5545 GB, free: 8.488 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4591, allocations: 0 / 0.5545 GB, free: 8.488 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002666/0.4593, allocations: 30.3 kB / 0.5546 GB, free: 8.477 MB / 398.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.0001321/0.4595, allocations: 104.6 kB / 0.5547 GB, free: 8.379 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002943/0.4598, allocations: 95.77 kB / 0.5547 GB, free: 8.344 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4598, allocations: 0 / 0.5547 GB, free: 8.344 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.4599, allocations: 43.48 kB / 0.5548 GB, free: 8.328 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.4602, allocations: 17.86 kB / 0.5548 GB, free: 8.316 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004999/0.4607, allocations: 206.8 kB / 0.555 GB, free: 8.148 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.461, allocations: 0.6993 MB / 0.5557 GB, free: 7.438 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 4.465e-05/0.4611, allocations: 7.578 kB / 0.5557 GB, free: 7.434 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.362e-05/0.4611, allocations: 18.3 kB / 0.5557 GB, free: 7.426 MB / 398.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.4611, allocations: 7.875 kB / 0.5557 GB, free: 7.418 MB / 398.1 MB
Notification: Performance of Templates: time 0.004109/0.4652, allocations: 1.068 MB / 0.5568 GB, free: 6.887 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.437919952906668]