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.01154/0.01154, allocations: 102.5 kB / 15.73 MB, free: 6.484 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.001818/0.001818, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.856/1.856, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.96/2.96, allocations: 461.9 MB / 0.7347 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 67.89 kB / 1.054 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4496/0.4508, allocations: 157.4 MB / 1.208 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002742/0.4536, allocations: 0.6752 MB / 1.208 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001987/0.4557, allocations: 1.053 MB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.121e-05/0.4558, allocations: 4 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.8e-05/0.4559, allocations: 0 / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.914e-05/0.456, allocations: 15.86 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.4565, allocations: 31.91 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001998/0.4567, allocations: 59.77 kB / 1.21 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.4568, allocations: 12 kB / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.457, allocations: 19.92 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.4571, allocations: 19.91 kB / 1.21 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.4571, allocations: 8 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.4572, allocations: 15.98 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.4573, allocations: 15.98 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.147e-05/0.4573, allocations: 27.86 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.4575, allocations: 59.78 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4576, allocations: 3.938 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.356e-06/0.4576, allocations: 0 / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.4576, allocations: 0 / 1.21 GB, free: 7.668 MB / 0.9669 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.0008126/0.4584, allocations: 371.3 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/0.4585, allocations: 12.03 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.325e-05/0.4586, allocations: 8.844 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.4587, allocations: 168.3 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.4588, allocations: 384 / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.4588, allocations: 4.375 kB / 1.21 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.4591, allocations: 66.22 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.4591, allocations: 4.125 kB / 1.21 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.4591, allocations: 11.94 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.4591, allocations: 0 / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.4594, allocations: 43.95 kB / 1.21 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.4601, allocations: 284.8 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.4603, allocations: 58.48 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.4604, allocations: 28.95 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.4604, allocations: 11.94 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.4607, allocations: 71.38 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.495e-06/0.4607, allocations: 0 / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004992/0.4612, allocations: 121.6 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.289e-05/0.4613, allocations: 55.41 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.4614, allocations: 105.8 kB / 1.211 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.4615, allocations: 29.7 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.4615, allocations: 92.48 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.4616, allocations: 19.81 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.4617, allocations: 29.7 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.4618, allocations: 310.8 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.462, allocations: 31.97 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.4621, allocations: 56.27 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.4623, allocations: 100.1 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4624, allocations: 0 / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003151/0.4627, allocations: 121.4 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.4627, allocations: 4 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.4627, allocations: 4 kB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.4627, allocations: 0 / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4629, allocations: 20.3 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.4629, allocations: 7.938 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.114e-05/0.463, allocations: 15.92 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.463, allocations: 4 kB / 1.212 GB, free: 5.184 MB / 0.9669 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.0001305/0.4632, allocations: 121.7 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.4632, allocations: 4 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003603/0.4636, allocations: 110.3 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4636, allocations: 0 / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.4636, allocations: 0 / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4636, allocations: 0 / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005528/0.4642, allocations: 370.3 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4642, allocations: 0 / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.774e-05/0.4642, allocations: 8 kB / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.4643, allocations: 0 / 1.212 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.4643, allocations: 8.234 kB / 1.212 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4643, allocations: 0 / 1.212 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4643, allocations: 4 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.4646, allocations: 195.4 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.4647, allocations: 89 kB / 1.213 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.4647, allocations: 4 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.852e-05/0.4648, allocations: 11.98 kB / 1.213 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.4649, allocations: 4 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.4649, allocations: 3.938 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.894e-05/0.465, allocations: 91.27 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.465, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002577/0.4652, allocations: 8 kB / 1.213 GB, free: 4.062 MB / 0.9669 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.0002254/0.4654, allocations: 107.2 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.4658, allocations: 79.86 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4658, allocations: 0 / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.4659, allocations: 35.92 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.4662, allocations: 11.78 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004496/0.4667, allocations: 142 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.4671, allocations: 0.6848 MB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.347e-05/0.4671, allocations: 7.938 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.4672, allocations: 11.44 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of SimCode: time 4.71e-07/0.4672, allocations: 0 / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of Templates: time 0.004429/0.4716, allocations: 0.8625 MB / 1.215 GB, free: 2.074 MB / 0.9669 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