Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.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.001488/0.001488, allocations: 109.8 kB / 18.84 MB, free: 2.742 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.001518/0.001518, allocations: 193.9 kB / 22.1 MB, free: 4.738 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.505/1.505, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.484/3.484, allocations: 495.8 MB / 0.783 GB, free: 33.54 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold")
translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 62.77 kB / 1.137 GB, free: 33.91 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.4287, allocations: 173.6 MB / 1.307 GB, free: 1.992 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002299/0.431, allocations: 0.6928 MB / 1.307 GB, free: 1.301 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001703/0.4327, allocations: 1.077 MB / 1.308 GB, free: 216 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.4328, allocations: 0 / 1.308 GB, free: 216 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 4.319e-05/0.4328, allocations: 7.938 kB / 1.308 GB, free: 208 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 8.192e-05/0.4329, allocations: 7.875 kB / 1.308 GB, free: 200 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.4333, allocations: 55.81 kB / 1.309 GB, free: 144 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.0001435/0.4334, allocations: 67.83 kB / 1.309 GB, free: 76 kB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.4336, allocations: 15.98 kB / 1.309 GB, free: 60 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.053e-05/0.4337, allocations: 23.92 kB / 1.309 GB, free: 36 kB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.507e-05/0.4338, allocations: 35.89 kB / 1.309 GB, free: 0 / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.4338, allocations: 4.047 kB / 1.309 GB, free: 15.99 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.49e-05/0.4339, allocations: 19.94 kB / 1.309 GB, free: 15.97 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 4.324e-05/0.4339, allocations: 15.94 kB / 1.309 GB, free: 15.96 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5.003e-05/0.434, allocations: 35.86 kB / 1.309 GB, free: 15.93 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.4342, allocations: 75.62 kB / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4342, allocations: 0 / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.285e-06/0.4342, allocations: 0 / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.652e-06/0.4342, allocations: 0 / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 11
 * Number of variables: 11
Notification: Performance of Generate backend data structure: time 0.0007874/0.435, allocations: 306.1 kB / 1.309 GB, free: 15.52 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.435, allocations: 16.86 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.166e-05/0.4351, allocations: 20.86 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.4352, allocations: 110.5 kB / 1.309 GB, free: 15.35 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.4352, allocations: 8.375 kB / 1.309 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.4352, allocations: 4.375 kB / 1.309 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.4355, allocations: 78.2 kB / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.4355, allocations: 4.125 kB / 1.309 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.4356, allocations: 7.938 kB / 1.309 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4356, allocations: 0 / 1.309 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.4358, allocations: 55.95 kB / 1.309 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006181/0.4364, allocations: 283.8 kB / 1.31 GB, free: 14.87 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.4366, allocations: 74.67 kB / 1.31 GB, free: 14.79 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.4368, allocations: 44.77 kB / 1.31 GB, free: 14.74 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.4368, allocations: 4 kB / 1.31 GB, free: 14.74 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.4371, allocations: 87.36 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.4371, allocations: 0 / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10): time 0.0005665/0.4376, allocations: 173.5 kB / 1.31 GB, free: 14.46 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.4377, allocations: 59.41 kB / 1.31 GB, free: 14.39 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.4378, allocations: 109.8 kB / 1.31 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.4379, allocations: 33.7 kB / 1.31 GB, free: 14.24 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.4379, allocations: 84.31 kB / 1.31 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.438, allocations: 35.78 kB / 1.31 GB, free: 14.11 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.366e-05/0.4381, allocations: 33.7 kB / 1.31 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001747/0.4382, allocations: 314.8 kB / 1.311 GB, free: 13.76 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.4384, allocations: 39.91 kB / 1.311 GB, free: 13.72 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.4385, allocations: 67.47 kB / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.4388, allocations: 102.8 kB / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4388, allocations: 0 / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003403/0.4391, allocations: 141.6 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4391, allocations: 4 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4391, allocations: 3.938 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.4392, allocations: 4 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.4393, allocations: 27.91 kB / 1.311 GB, free: 13.35 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4393, allocations: 0 / 1.311 GB, free: 13.35 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.915e-05/0.4394, allocations: 11.95 kB / 1.311 GB, free: 13.34 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.4394, allocations: 8.062 kB / 1.311 GB, free: 13.33 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (16):
 * Single equations (assignments): 16
 * 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.0001293/0.4395, allocations: 139 kB / 1.311 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.4395, allocations: 3.953 kB / 1.311 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003894/0.4399, allocations: 145.9 kB / 1.311 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.4399, allocations: 0 / 1.311 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4399, allocations: 0 / 1.311 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4399, allocations: 256 / 1.311 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005999/0.4405, allocations: 385.4 kB / 1.312 GB, free: 12.61 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4406, allocations: 8 kB / 1.312 GB, free: 12.6 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.527e-05/0.4406, allocations: 7.984 kB / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.4406, allocations: 4 kB / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.4406, allocations: 0 / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4406, allocations: 0 / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4406, allocations: 3.984 kB / 1.312 GB, free: 12.58 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004025/0.441, allocations: 247.3 kB / 1.312 GB, free: 12.32 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.184e-05/0.441, allocations: 7.953 kB / 1.312 GB, free: 12.32 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.4411, allocations: 4 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.4412, allocations: 12.27 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.951e-05/0.4412, allocations: 3.984 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.4413, allocations: 7.938 kB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 7.594e-05/0.4413, allocations: 95.2 kB / 1.312 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.4413, allocations: 3.938 kB / 1.312 GB, free: 12.19 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002528/0.4416, allocations: 20 kB / 1.312 GB, free: 12.17 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c)
 * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (10):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 5
 * 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.0001762/0.4418, allocations: 105.1 kB / 1.312 GB, free: 12.06 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.000367/0.4421, allocations: 95.88 kB / 1.312 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4421, allocations: 0 / 1.312 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.4423, allocations: 44.09 kB / 1.312 GB, free: 11.93 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.4426, allocations: 11.98 kB / 1.312 GB, free: 11.91 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.443, allocations: 166.7 kB / 1.313 GB, free: 11.73 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.4434, allocations: 0.6885 MB / 1.313 GB, free: 11.01 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.742e-05/0.4434, allocations: 4.438 kB / 1.313 GB, free: 11.01 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.4435, allocations: 15.44 kB / 1.313 GB, free: 10.99 MB / 1.014 GB
Notification: Performance of SimCode: time 5.01e-07/0.4435, allocations: 0 / 1.313 GB, free: 10.99 MB / 1.014 GB
Notification: Performance of Templates: time 0.004554/0.448, allocations: 1.078 MB / 1.314 GB, free: 9.922 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.869459390640259]