Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001892/0.001892, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.002479/0.002479, allocations: 195.7 kB / 22.11 MB, free: 5.152 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.552/1.552, allocations: 225.6 MB / 250.8 MB, free: 13.08 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.437/3.437, allocations: 495.8 MB / 0.783 GB, free: 33.66 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold")
translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 64.14 kB / 1.137 GB, free: 33.88 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4292, allocations: 173.6 MB / 1.307 GB, free: 1.859 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002136/0.4313, allocations: 0.6845 MB / 1.307 GB, free: 1.176 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001667/0.433, allocations: 1.073 MB / 1.308 GB, free: 92 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.331e-05/0.4331, allocations: 3.938 kB / 1.308 GB, free: 88 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 3.421e-05/0.4331, allocations: 0 / 1.308 GB, free: 88 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 8.07e-05/0.4332, allocations: 7.875 kB / 1.308 GB, free: 80 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.4335, allocations: 43.89 kB / 1.309 GB, free: 36 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.0001591/0.4337, allocations: 55.78 kB / 1.309 GB, free: 15.98 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.4338, allocations: 7.984 kB / 1.309 GB, free: 15.97 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 8.321e-05/0.4339, allocations: 27.92 kB / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 6.761e-05/0.4339, allocations: 23.91 kB / 1.309 GB, free: 15.92 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.434, allocations: 4 kB / 1.309 GB, free: 15.92 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.434, allocations: 16 kB / 1.309 GB, free: 15.9 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.4341, allocations: 7.984 kB / 1.309 GB, free: 15.89 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.4341, allocations: 27.84 kB / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.4343, allocations: 59.73 kB / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.4343, allocations: 0 / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.613e-06/0.4343, allocations: 0 / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.282e-06/0.4343, allocations: 0 / 1.309 GB, free: 15.81 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: 8
 * Number of variables: 8
Notification: Performance of Generate backend data structure: time 0.0007052/0.435, allocations: 306.1 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.4351, allocations: 8.031 kB / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.4351, allocations: 8.922 kB / 1.309 GB, free: 15.46 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.4353, allocations: 110.5 kB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.4353, allocations: 384 / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.4353, allocations: 12.31 kB / 1.309 GB, free: 15.32 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.4355, allocations: 62.22 kB / 1.309 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4355, allocations: 12.17 kB / 1.309 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.4355, allocations: 3.938 kB / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4355, allocations: 0 / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.4357, allocations: 43.89 kB / 1.309 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.4362, allocations: 247.9 kB / 1.309 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.4364, allocations: 58.5 kB / 1.31 GB, free: 14.84 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.4365, allocations: 28.95 kB / 1.31 GB, free: 14.81 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.4365, allocations: 0 / 1.31 GB, free: 14.81 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.4368, allocations: 87.33 kB / 1.31 GB, free: 14.71 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.4368, allocations: 0 / 1.31 GB, free: 14.71 MB / 1.014 GB
Notification: Performance of matching and sorting (n=7): time 0.0004662/0.4372, allocations: 121.6 kB / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.4373, allocations: 51.41 kB / 1.31 GB, free: 14.52 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.4374, allocations: 109.8 kB / 1.31 GB, free: 14.41 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.4374, allocations: 29.7 kB / 1.31 GB, free: 14.37 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.4375, allocations: 80.14 kB / 1.31 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.4375, allocations: 23.84 kB / 1.31 GB, free: 14.27 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.4375, allocations: 25.66 kB / 1.31 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001599/0.4377, allocations: 322.8 kB / 1.31 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.4378, allocations: 27.92 kB / 1.31 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.4379, allocations: 56.52 kB / 1.31 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.4382, allocations: 104.1 kB / 1.311 GB, free: 13.7 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4382, allocations: 0 / 1.311 GB, free: 13.7 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003098/0.4385, allocations: 121.6 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.4385, allocations: 5.719 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4385, allocations: 4 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.4385, allocations: 0 / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.4387, allocations: 15.98 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.4387, allocations: 4 kB / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.656e-05/0.4387, allocations: 11.92 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.4388, allocations: 8 kB / 1.311 GB, free: 13.52 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (10):
 * Single equations (assignments): 10
 * 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.0001277/0.4389, allocations: 129.7 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/0.4389, allocations: 7.953 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003528/0.4393, allocations: 106 kB / 1.311 GB, free: 13.27 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.4393, allocations: 3.984 kB / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4393, allocations: 3.938 kB / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.4393, allocations: 0 / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005326/0.4398, allocations: 337.5 kB / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4398, allocations: 0 / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.24e-05/0.4399, allocations: 11.98 kB / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4399, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.4399, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4399, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4399, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003587/0.4402, allocations: 207.8 kB / 1.312 GB, free: 12.65 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.45e-05/0.4403, allocations: 8.031 kB / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.4403, allocations: 4 kB / 1.312 GB, free: 12.64 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.4404, allocations: 7.984 kB / 1.312 GB, free: 12.63 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.633e-05/0.4404, allocations: 7.984 kB / 1.312 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.4405, allocations: 7.938 kB / 1.312 GB, free: 12.61 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.829e-05/0.4405, allocations: 83.28 kB / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4405, allocations: 0 / 1.312 GB, free: 12.53 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002583/0.4408, allocations: 15.94 kB / 1.312 GB, free: 12.52 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger)
 * Number of discrete states: 1 (zerOrdHol.ySample)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.0001663/0.4409, allocations: 108 kB / 1.312 GB, free: 12.4 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002863/0.4412, allocations: 63.97 kB / 1.312 GB, free: 12.34 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4412, allocations: 192 / 1.312 GB, free: 12.34 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.4414, allocations: 43.89 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.4416, allocations: 12.38 kB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003795/0.442, allocations: 149.9 kB / 1.312 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.4424, allocations: 0.6845 MB / 1.313 GB, free: 11.4 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.612e-05/0.4424, allocations: 7.984 kB / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.655e-05/0.4425, allocations: 15.44 kB / 1.313 GB, free: 11.38 MB / 1.014 GB
Notification: Performance of SimCode: time 2.9e-07/0.4425, allocations: 0 / 1.313 GB, free: 11.38 MB / 1.014 GB
Notification: Performance of Templates: time 0.003932/0.4464, allocations: 0.8575 MB / 1.314 GB, free: 10.53 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.811525147408247]