Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01222/0.01222, allocations: 171.7 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.991/2.991, allocations: 462.7 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005144/0.0005144, allocations: 13.06 kB / 0.9028 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4297/0.4303, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0009529/0.4313, allocations: 407.1 kB / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.4327, allocations: 1.061 MB / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.676e-05/0.4327, allocations: 0 / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.06e-05/0.4328, allocations: 0 / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.831e-05/0.4329, allocations: 11.88 kB / 1.06 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.4331, allocations: 31.91 kB / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.302e-05/0.4332, allocations: 51.91 kB / 1.06 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.4333, allocations: 7.984 kB / 1.06 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.921e-05/0.4334, allocations: 19.92 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.108e-05/0.4335, allocations: 19.92 kB / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.4335, allocations: 0 / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.61e-05/0.4336, allocations: 19.92 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.4336, allocations: 7.984 kB / 1.06 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.57e-05/0.4337, allocations: 57.53 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.4338, allocations: 51.84 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4338, allocations: 4 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.836e-06/0.4338, allocations: 3.984 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.4338, allocations: 0 / 1.06 GB, free: 3.734 MB / 0.8106 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.0006576/0.4345, allocations: 368.8 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4346, allocations: 8.031 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.4346, allocations: 8.938 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.4347, allocations: 176.2 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.4348, allocations: 4.375 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.4348, allocations: 4.375 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.4351, allocations: 74.16 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4351, allocations: 4.125 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.4351, allocations: 3.938 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.4351, allocations: 4 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.4353, allocations: 55.95 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004933/0.4358, allocations: 276.9 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.436, allocations: 66.42 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.4361, allocations: 36.97 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.4362, allocations: 7.984 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.4364, allocations: 79.45 kB / 1.062 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.4365, allocations: 0 / 1.062 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004472/0.4369, allocations: 141.5 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.437, allocations: 63.33 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.417e-05/0.4371, allocations: 97.86 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.4371, allocations: 33.7 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.4372, allocations: 84.12 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.4372, allocations: 23.75 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.4372, allocations: 13.72 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4374, allocations: 318.8 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.4375, allocations: 27.98 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.4376, allocations: 68.27 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.4379, allocations: 108.1 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4379, allocations: 0 / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002844/0.4382, allocations: 129.5 kB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.4382, allocations: 8 kB / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.4382, allocations: 0 / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.4382, allocations: 0 / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.4383, allocations: 19.98 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.4383, allocations: 11.92 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.856e-05/0.4384, allocations: 8 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-06/0.4384, allocations: 8 kB / 1.063 GB, free: 1.184 MB / 0.8106 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 9.295e-05/0.4385, allocations: 119.3 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.4385, allocations: 11.89 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.4388, allocations: 121.9 kB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4389, allocations: 4 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4389, allocations: 0 / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4389, allocations: 3.984 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004528/0.4393, allocations: 370.7 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4394, allocations: 4 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.208e-05/0.4394, allocations: 15.92 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4394, allocations: 4 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.4394, allocations: 0 / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4395, allocations: 0 / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4395, allocations: 0 / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000303/0.4398, allocations: 215.3 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.4398, allocations: 81.11 kB / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.4398, allocations: 0 / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.4399, allocations: 16.23 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.44, allocations: 7.984 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.44, allocations: 11.94 kB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.965e-05/0.4401, allocations: 87.28 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4401, allocations: 0 / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002552/0.4403, allocations: 8 kB / 1.064 GB, free: 20 kB / 0.8106 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.0001757/0.4405, allocations: 107.2 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002781/0.4408, allocations: 84.44 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4408, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.4409, allocations: 43.91 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.4412, allocations: 10.23 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.4416, allocations: 169.9 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.4418, allocations: 0.6809 MB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.085e-05/0.4419, allocations: 4 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.4419, allocations: 11.44 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.4419, allocations: 0 / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of Templates: time 0.003329/0.4452, allocations: 0.7405 MB / 1.065 GB, free: 14.12 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches