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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001053/0.001053, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.0009882/0.0009886, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.749/2.749, allocations: 436.5 MB / 0.7104 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003891, allocations: 8 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8741/0.8745, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0009216/0.8755, allocations: 392.9 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.8768, allocations: 1.035 MB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.071e-05/0.8769, allocations: 0 / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.8769, allocations: 3.938 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.877, allocations: 7.969 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.8773, allocations: 31.91 kB / 1.022 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.13e-05/0.8774, allocations: 27.91 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.8775, allocations: 19.98 kB / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.215e-05/0.8776, allocations: 15.97 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.051e-05/0.8776, allocations: 19.92 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.8776, allocations: 3.938 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/0.8777, allocations: 15.98 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/0.8777, allocations: 15.97 kB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.8778, allocations: 29.7 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.243e-05/0.8779, allocations: 31.92 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.8779, allocations: 0 / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8779, allocations: 0 / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.8779, allocations: 4 kB / 1.022 GB, free: 15.44 MB / 0.7794 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.0006315/0.8785, allocations: 369.2 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.8786, allocations: 15.92 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.8786, allocations: 7.906 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.8788, allocations: 163 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.8788, allocations: 12 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.8788, allocations: 3.984 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.879, allocations: 73.61 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.8791, allocations: 0 / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.8791, allocations: 0 / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.8791, allocations: 8 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.8794, allocations: 59.94 kB / 1.023 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004767/0.8798, allocations: 284.7 kB / 1.023 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.88, allocations: 62.55 kB / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.8801, allocations: 3.938 kB / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.8804, allocations: 79.5 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.737e-06/0.8804, allocations: 4 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004376/0.8808, allocations: 141.6 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.8809, allocations: 55.41 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.486e-05/0.881, allocations: 105.8 kB / 1.024 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.881, allocations: 29.7 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.8811, allocations: 91.98 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.8811, allocations: 15.8 kB / 1.024 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.8811, allocations: 4 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.8813, allocations: 310.8 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.8814, allocations: 39.97 kB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.8815, allocations: 64.2 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.8816, allocations: 35.98 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.8816, allocations: 3.953 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002749/0.8819, allocations: 129.6 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.8819, allocations: 4 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.882, allocations: 4 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.882, allocations: 0 / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.8821, allocations: 19.98 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.8821, allocations: 320 / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.486e-05/0.8822, allocations: 19.89 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.8822, allocations: 4 kB / 1.025 GB, free: 13.03 MB / 0.7794 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.8823, allocations: 125.7 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.8823, allocations: 11.89 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003314/0.8827, allocations: 118 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8827, allocations: 0 / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.8827, allocations: 8 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.8827, allocations: 0 / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004661/0.8832, allocations: 370.3 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8832, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.451e-05/0.8833, allocations: 19.98 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.8833, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.8833, allocations: 4 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.8833, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.8833, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.8836, allocations: 215.6 kB / 1.025 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.8837, allocations: 85.05 kB / 1.025 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.8837, allocations: 7.938 kB / 1.025 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.601e-05/0.8838, allocations: 12.23 kB / 1.025 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.075e-05/0.8839, allocations: 7.984 kB / 1.025 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.8839, allocations: 8 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.786e-05/0.884, allocations: 87.28 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.884, allocations: 0 / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002389/0.8842, allocations: 12 kB / 1.026 GB, free: 11.86 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.8844, allocations: 107.2 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.8846, allocations: 79.89 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.8846, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.8848, allocations: 39.97 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.8849, allocations: 11.89 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.8853, allocations: 159 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.8856, allocations: 0.6828 MB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.166e-05/0.8857, allocations: 8.172 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.354e-05/0.8857, allocations: 11.44 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8857, allocations: 0 / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of Templates: time 0.002975/0.8887, allocations: 0.7156 MB / 1.027 GB, free: 9.996 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches