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.001999/0.001999, allocations: 110 kB / 18.93 MB, free: 2.945 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.002601/0.002601, allocations: 191.7 kB / 22.23 MB, free: 5.16 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.604/1.604, allocations: 225.6 MB / 251 MB, free: 13.01 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.32/3.32, allocations: 496 MB / 0.7835 GB, free: 33.62 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.002231/0.002231, allocations: 67.7 kB / 1.138 GB, free: 33.83 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4709/0.4731, allocations: 173.6 MB / 1.307 GB, free: 1.844 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002412/0.4755, allocations: 0.7058 MB / 1.308 GB, free: 1.141 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001753/0.4773, allocations: 1.085 MB / 1.309 GB, free: 44 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.044e-05/0.4773, allocations: 4 kB / 1.309 GB, free: 40 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 4.07e-05/0.4774, allocations: 3.938 kB / 1.309 GB, free: 36 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 7.626e-05/0.4775, allocations: 7.938 kB / 1.309 GB, free: 28 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.4778, allocations: 47.83 kB / 1.309 GB, free: 15.98 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001545/0.478, allocations: 71.77 kB / 1.309 GB, free: 15.91 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.4781, allocations: 12 kB / 1.309 GB, free: 15.9 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.954e-05/0.4782, allocations: 27.92 kB / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.902e-05/0.4783, allocations: 35.89 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.4783, allocations: 8 kB / 1.309 GB, free: 15.83 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.4784, allocations: 15.98 kB / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.4784, allocations: 19.92 kB / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5.822e-05/0.4784, allocations: 35.84 kB / 1.309 GB, free: 15.76 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000193/0.4786, allocations: 71.75 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4786, allocations: 4 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.533e-06/0.4786, allocations: 0 / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.162e-05/0.4787, allocations: 3.938 kB / 1.309 GB, free: 15.68 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.0007275/0.4794, allocations: 306.1 kB / 1.31 GB, free: 15.35 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4794, allocations: 8.031 kB / 1.31 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.4795, allocations: 8.891 kB / 1.31 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4796, allocations: 110.5 kB / 1.31 GB, free: 15.2 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.4797, allocations: 12.38 kB / 1.31 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.4797, allocations: 4.375 kB / 1.31 GB, free: 15.18 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.4799, allocations: 78.2 kB / 1.31 GB, free: 15.1 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.4799, allocations: 192 / 1.31 GB, free: 15.1 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.48, allocations: 11.94 kB / 1.31 GB, free: 15.09 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.48, allocations: 0 / 1.31 GB, free: 15.09 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.4802, allocations: 51.89 kB / 1.31 GB, free: 15.04 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006463/0.4808, allocations: 279.9 kB / 1.31 GB, free: 14.72 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.481, allocations: 78.47 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.4812, allocations: 40.83 kB / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.4812, allocations: 192 / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.4815, allocations: 99.3 kB / 1.31 GB, free: 14.48 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.4815, allocations: 0 / 1.31 GB, free: 14.48 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10): time 0.0005368/0.482, allocations: 173.4 kB / 1.311 GB, free: 14.31 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.4821, allocations: 63.39 kB / 1.311 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.4822, allocations: 117.9 kB / 1.311 GB, free: 14.11 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.379e-05/0.4822, allocations: 37.64 kB / 1.311 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.4823, allocations: 80.38 kB / 1.311 GB, free: 13.98 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.4823, allocations: 31.8 kB / 1.311 GB, free: 13.95 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.4824, allocations: 29.72 kB / 1.311 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001844/0.4826, allocations: 318.8 kB / 1.311 GB, free: 13.59 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.4827, allocations: 35.97 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.4828, allocations: 70.42 kB / 1.311 GB, free: 13.48 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.4831, allocations: 102.5 kB / 1.311 GB, free: 13.37 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4831, allocations: 0 / 1.311 GB, free: 13.37 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003202/0.4834, allocations: 141.5 kB / 1.312 GB, free: 13.23 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.4834, allocations: 4 kB / 1.312 GB, free: 13.22 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.4834, allocations: 3.938 kB / 1.312 GB, free: 13.22 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4834, allocations: 4 kB / 1.312 GB, free: 13.21 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.4836, allocations: 23.91 kB / 1.312 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4836, allocations: 4 kB / 1.312 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.273e-05/0.4837, allocations: 8 kB / 1.312 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.4837, allocations: 4 kB / 1.312 GB, free: 13.18 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.0001409/0.4838, allocations: 139.1 kB / 1.312 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.523e-05/0.4838, allocations: 3.953 kB / 1.312 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003861/0.4842, allocations: 145.9 kB / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.4842, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4842, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4842, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006093/0.4848, allocations: 393.8 kB / 1.312 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4848, allocations: 0 / 1.312 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.146e-05/0.4849, allocations: 15.98 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.4849, allocations: 0 / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4849, allocations: 0 / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4849, allocations: 3.984 kB / 1.312 GB, free: 12.42 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4849, allocations: 4 kB / 1.312 GB, free: 12.42 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000379/0.4853, allocations: 239.3 kB / 1.313 GB, free: 12.17 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.4853, allocations: 11.95 kB / 1.313 GB, free: 12.16 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.4853, allocations: 0 / 1.313 GB, free: 12.16 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.4854, allocations: 7.984 kB / 1.313 GB, free: 12.15 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.4855, allocations: 7.984 kB / 1.313 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.4855, allocations: 11.94 kB / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.524e-05/0.4856, allocations: 87.52 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.4856, allocations: 4 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002509/0.4858, allocations: 20 kB / 1.313 GB, free: 12.02 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.0001979/0.486, allocations: 96.34 kB / 1.313 GB, free: 11.92 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003298/0.4864, allocations: 99.81 kB / 1.313 GB, free: 11.82 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4864, allocations: 0 / 1.313 GB, free: 11.82 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.4865, allocations: 47.91 kB / 1.313 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.4868, allocations: 20.09 kB / 1.313 GB, free: 11.75 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004703/0.4872, allocations: 163 kB / 1.313 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.4877, allocations: 0.6885 MB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.398e-05/0.4877, allocations: 4.438 kB / 1.314 GB, free: 10.85 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.36e-05/0.4878, allocations: 11.44 kB / 1.314 GB, free: 10.84 MB / 1.014 GB
Notification: Performance of SimCode: time 3.11e-07/0.4878, allocations: 7.938 kB / 1.314 GB, free: 10.83 MB / 1.014 GB
Notification: Performance of Templates: time 0.004611/0.4924, allocations: 1.066 MB / 1.315 GB, free: 9.77 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.813265041448176]