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.001496/0.001496, allocations: 109.4 kB / 15.99 MB, free: 6.344 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.001755/0.001755, allocations: 196.2 kB / 16.91 MB, free: 6.176 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.361/1.361, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.663/2.663, allocations: 469.4 MB / 0.7423 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 68.67 kB / 0.9083 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3494, allocations: 159.1 MB / 1.064 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001921/0.3514, allocations: 0.7365 MB / 1.064 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3527, allocations: 1.065 MB / 1.065 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.416e-05/0.3528, allocations: 3.938 kB / 1.065 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.3528, allocations: 7.938 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.706e-05/0.3529, allocations: 0 / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.3532, allocations: 43.89 kB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.252e-05/0.3533, allocations: 47.8 kB / 1.066 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.3534, allocations: 15.97 kB / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.583e-05/0.3535, allocations: 23.92 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.3536, allocations: 19.92 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3536, allocations: 4 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.333e-05/0.3537, allocations: 23.98 kB / 1.066 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.154e-05/0.3537, allocations: 11.92 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.953e-05/0.3537, allocations: 23.92 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.3539, allocations: 35.92 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3539, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3539, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.3539, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8419 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.0005925/0.3545, allocations: 367.7 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3545, allocations: 12.03 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.3546, allocations: 4.938 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.3547, allocations: 176.2 kB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3547, allocations: 12.36 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.3548, allocations: 4.375 kB / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.355, allocations: 62.22 kB / 1.066 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.355, allocations: 4.125 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.355, allocations: 3.938 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.355, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.3552, allocations: 47.95 kB / 1.066 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004633/0.3557, allocations: 268.9 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.3559, allocations: 62.42 kB / 1.067 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.356, allocations: 36.97 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.356, allocations: 0 / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.3563, allocations: 75.38 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.973e-06/0.3563, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004321/0.3567, allocations: 133.5 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.3568, allocations: 51.41 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.3569, allocations: 105.8 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.3569, allocations: 25.7 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.3569, allocations: 88.14 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/0.357, allocations: 23.64 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/0.357, allocations: 21.72 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3571, allocations: 322.8 kB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.3572, allocations: 23.98 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3574, allocations: 64.2 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.3576, allocations: 100.1 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3576, allocations: 4 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002854/0.3579, allocations: 105.6 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3579, allocations: 4 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.358, allocations: 4.125 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.358, allocations: 4 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.3581, allocations: 23.92 kB / 1.068 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.3581, allocations: 0 / 1.068 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.911e-05/0.3582, allocations: 16.14 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.3582, allocations: 4 kB / 1.068 GB, free: 10.79 MB / 0.8419 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.693e-05/0.3583, allocations: 124 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.3583, allocations: 4 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.3587, allocations: 117.9 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3587, allocations: 4 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3587, allocations: 0 / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3587, allocations: 0 / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.3591, allocations: 358.4 kB / 1.068 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3592, allocations: 3.938 kB / 1.068 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.588e-05/0.3592, allocations: 15.98 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3592, allocations: 0 / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.3593, allocations: 4 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3593, allocations: 0 / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3593, allocations: 0 / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.3596, allocations: 203.8 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.913e-05/0.3596, allocations: 85.02 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.3596, allocations: 0 / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.3598, allocations: 11.98 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.3598, allocations: 3.984 kB / 1.069 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.3598, allocations: 11.94 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.858e-05/0.3599, allocations: 79.28 kB / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.364e-06/0.3599, allocations: 0 / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002625/0.3601, allocations: 19.94 kB / 1.069 GB, free: 9.66 MB / 0.8419 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.0001714/0.3603, allocations: 111.2 kB / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002699/0.3606, allocations: 71.95 kB / 1.069 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3606, allocations: 0 / 1.069 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.3607, allocations: 31.97 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.361, allocations: 8.188 kB / 1.069 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.3614, allocations: 187.9 kB / 1.069 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3616, allocations: 0.6862 MB / 1.07 GB, free: 8.508 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.485e-05/0.3617, allocations: 15.42 kB / 1.07 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3617, allocations: 0 / 1.07 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of Templates: time 0.002731/0.3644, allocations: 0.8914 MB / 1.071 GB, free: 7.602 MB / 0.8419 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/jenkins1/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