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.01139/0.01139, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.002028/0.002028, allocations: 187.4 kB / 16.67 MB, free: 5.918 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.602/1.602, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.022/3.022, allocations: 461.9 MB / 0.7347 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001182, allocations: 67.91 kB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.397, allocations: 157.4 MB / 1.208 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002146/0.3992, allocations: 0.6753 MB / 1.208 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001691/0.401, allocations: 1.057 MB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.277e-05/0.401, allocations: 4 kB / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.467e-05/0.4011, allocations: 3.938 kB / 1.209 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.311e-05/0.4012, allocations: 11.92 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.4016, allocations: 39.84 kB / 1.209 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.4017, allocations: 55.77 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.4019, allocations: 12 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.708e-05/0.402, allocations: 19.92 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.996e-05/0.402, allocations: 23.91 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.4021, allocations: 4 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.647e-05/0.4022, allocations: 23.98 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.69e-05/0.4022, allocations: 11.98 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.049e-05/0.4022, allocations: 27.86 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.4024, allocations: 51.84 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/0.4024, allocations: 3.938 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.284e-06/0.4024, allocations: 0 / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.4025, allocations: 0 / 1.21 GB, free: 7.57 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.0007431/0.4032, allocations: 375.3 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4033, allocations: 12.03 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.4033, allocations: 8.781 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.4034, allocations: 168.3 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.4035, allocations: 4.375 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.4035, allocations: 8.359 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.4037, allocations: 62.23 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4037, allocations: 192 / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.4038, allocations: 3.938 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.4038, allocations: 4 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.404, allocations: 47.94 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004909/0.4045, allocations: 284.7 kB / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.4047, allocations: 54.48 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.4048, allocations: 40.95 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.4048, allocations: 0 / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.405, allocations: 79.31 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.405, allocations: 0 / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000425/0.4055, allocations: 117.6 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.4055, allocations: 55.41 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.346e-05/0.4056, allocations: 109.8 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.4057, allocations: 33.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.689e-05/0.4057, allocations: 84.55 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.4058, allocations: 23.81 kB / 1.211 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.4058, allocations: 21.7 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4059, allocations: 318.8 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.406, allocations: 31.97 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.4062, allocations: 60.2 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.4064, allocations: 100.1 kB / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4064, allocations: 0 / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002757/0.4067, allocations: 117.4 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4067, allocations: 4 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.4067, allocations: 4.125 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4068, allocations: 4 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4069, allocations: 16.17 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4069, allocations: 4 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.531e-05/0.407, allocations: 15.86 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.407, allocations: 4 kB / 1.212 GB, free: 5.082 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.0001068/0.4071, allocations: 121.7 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.4071, allocations: 4 kB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.4074, allocations: 106 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.4074, allocations: 0 / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4074, allocations: 0 / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4074, allocations: 0 / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.4079, allocations: 370.7 kB / 1.212 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4079, allocations: 4 kB / 1.212 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.203e-05/0.408, allocations: 11.98 kB / 1.212 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.408, allocations: 4 kB / 1.212 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.408, allocations: 0 / 1.212 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.408, allocations: 0 / 1.212 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.408, allocations: 0 / 1.212 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.4083, allocations: 203.4 kB / 1.213 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.4084, allocations: 81.02 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.4084, allocations: 8 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.479e-05/0.4085, allocations: 7.984 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.4086, allocations: 8 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.4086, allocations: 3.938 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.943e-05/0.4086, allocations: 87.52 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4086, allocations: 0 / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002497/0.4089, allocations: 16 kB / 1.213 GB, free: 3.957 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.0001716/0.4091, allocations: 111.2 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.4094, allocations: 75.86 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4094, allocations: 0 / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.4095, allocations: 35.97 kB / 1.213 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.4098, allocations: 8 kB / 1.213 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003762/0.4102, allocations: 146.2 kB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.4104, allocations: 0.6807 MB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.987e-05/0.4105, allocations: 4 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.4105, allocations: 15.38 kB / 1.214 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.4105, allocations: 0 / 1.214 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of Templates: time 0.003553/0.4141, allocations: 0.8426 MB / 1.215 GB, free: 1.988 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