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.001661/0.001661, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001873/0.001873, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.521/1.521, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.843/2.843, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001315, allocations: 62.52 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3561, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001972/0.3581, allocations: 0.7326 MB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.3594, allocations: 1.073 MB / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.73e-05/0.3595, allocations: 0 / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.3595, allocations: 3.984 kB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.399e-05/0.3596, allocations: 3.938 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.3599, allocations: 39.91 kB / 1.054 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.162e-05/0.3599, allocations: 43.91 kB / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.36, allocations: 12 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.054e-05/0.3601, allocations: 23.8 kB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.853e-05/0.3602, allocations: 27.89 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.3602, allocations: 4 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.3603, allocations: 8 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.3603, allocations: 15.92 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.85e-05/0.3604, allocations: 15.92 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.3605, allocations: 63.78 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3605, allocations: 0 / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3605, allocations: 4 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.738e-06/0.3605, allocations: 0 / 1.054 GB, free: 6.77 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.0006535/0.3612, allocations: 371.6 kB / 1.054 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.3612, allocations: 12.03 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.3613, allocations: 0.9375 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.3614, allocations: 172.2 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3614, allocations: 4.359 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.3615, allocations: 4.375 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.3617, allocations: 74.16 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3617, allocations: 192 / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.3617, allocations: 7.938 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3617, allocations: 0 / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.3619, allocations: 39.95 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.3625, allocations: 284.9 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.3627, allocations: 62.42 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3628, allocations: 24.97 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.3629, allocations: 3.984 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.3631, allocations: 75.39 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.3632, allocations: 0 / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004713/0.3636, allocations: 133.5 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.3637, allocations: 59.39 kB / 1.055 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.929e-05/0.3638, allocations: 97.86 kB / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.3638, allocations: 29.7 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.3639, allocations: 92.12 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.3639, allocations: 15.75 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.364, allocations: 25.7 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3641, allocations: 314.8 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.3642, allocations: 31.97 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3644, allocations: 60.2 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.3646, allocations: 96.08 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3646, allocations: 256 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002838/0.3649, allocations: 121.4 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.365, allocations: 5.406 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.365, allocations: 11.98 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.365, allocations: 0 / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.3652, allocations: 15.98 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.3652, allocations: 8.25 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/0.3653, allocations: 12.12 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.3653, allocations: 4 kB / 1.056 GB, free: 4.289 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 0.0001017/0.3654, allocations: 123.3 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.719e-05/0.3654, allocations: 7.906 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003213/0.3657, allocations: 109.9 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3658, allocations: 0 / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3658, allocations: 0 / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3658, allocations: 4 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004758/0.3663, allocations: 354.5 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3663, allocations: 4.047 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.695e-05/0.3663, allocations: 11.97 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.79e-05/0.3664, allocations: 4 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.3664, allocations: 7.938 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3664, allocations: 0 / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3664, allocations: 4 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.3667, allocations: 199.3 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.3668, allocations: 77.11 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.3668, allocations: 11.98 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.3669, allocations: 4 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.367, allocations: 7.984 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.367, allocations: 7.938 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.115e-05/0.367, allocations: 87.27 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3671, allocations: 4 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002459/0.3673, allocations: 8 kB / 1.057 GB, free: 3.168 MB / 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.0001694/0.3675, allocations: 111.1 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002621/0.3677, allocations: 64.12 kB / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.3678, allocations: 8 kB / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.3679, allocations: 39.92 kB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.3682, allocations: 10.52 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003621/0.3685, allocations: 143.8 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.3688, allocations: 0.6928 MB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.59e-05/0.3689, allocations: 4 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.546e-05/0.3689, allocations: 15.38 kB / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of SimCode: time 2.01e-07/0.3689, allocations: 0 / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of Templates: time 0.003288/0.3722, allocations: 0.7462 MB / 1.059 GB, free: 1.289 MB / 0.8106 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