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.00148/0.00148, allocations: 119.3 kB / 16.42 MB, free: 6.496 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.001684/0.001684, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.726/2.726, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 67.89 kB / 1.055 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.076/1.078, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002796/1.081, allocations: 0.6792 MB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001898/1.083, allocations: 1.065 MB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.939e-05/1.083, allocations: 0 / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.881e-05/1.083, allocations: 3.938 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.341e-05/1.083, allocations: 7.922 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/1.083, allocations: 35.91 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001481/1.084, allocations: 59.77 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/1.084, allocations: 12 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/1.084, allocations: 19.92 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.951e-05/1.084, allocations: 27.91 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/1.084, allocations: 4 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.168e-05/1.084, allocations: 11.98 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.283e-05/1.084, allocations: 15.98 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.218e-05/1.084, allocations: 19.86 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002212/1.084, allocations: 63.78 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/1.084, allocations: 0 / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.504e-06/1.084, allocations: 4 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.705e-06/1.084, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 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.0008642/1.085, allocations: 363.2 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.232e-05/1.085, allocations: 15.97 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.71e-05/1.085, allocations: 4.844 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/1.086, allocations: 170.2 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/1.086, allocations: 384 / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/1.086, allocations: 12.38 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/1.086, allocations: 70.16 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/1.086, allocations: 192 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/1.086, allocations: 3.938 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/1.086, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/1.086, allocations: 43.95 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/1.087, allocations: 284.8 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/1.087, allocations: 58.48 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/1.087, allocations: 32.89 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/1.087, allocations: 8 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003076/1.088, allocations: 71.38 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/1.088, allocations: 0 / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005227/1.088, allocations: 121.6 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/1.088, allocations: 55.41 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/1.088, allocations: 97.86 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/1.088, allocations: 33.64 kB / 1.212 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/1.088, allocations: 99.97 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/1.089, allocations: 19.88 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/1.089, allocations: 25.7 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001506/1.089, allocations: 314.8 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/1.089, allocations: 27.97 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/1.089, allocations: 60.52 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/1.089, allocations: 88.2 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.089, allocations: 3.938 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003024/1.09, allocations: 117.5 kB / 1.212 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/1.09, allocations: 7.984 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/1.09, allocations: 4 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/1.09, allocations: 0 / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/1.09, allocations: 19.98 kB / 1.213 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/1.09, allocations: 4 kB / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.842e-05/1.09, allocations: 8.031 kB / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/1.09, allocations: 11.94 kB / 1.213 GB, free: 9.129 MB / 0.9356 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.0001378/1.09, allocations: 127.9 kB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/1.09, allocations: 4 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/1.09, allocations: 109.9 kB / 1.213 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.09, allocations: 3.984 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/1.09, allocations: 0 / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.407e-05/1.09, allocations: 81.02 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/1.091, allocations: 8 kB / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.273e-05/1.091, allocations: 15.92 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.548e-05/1.091, allocations: 11.92 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003356/1.091, allocations: 181.3 kB / 1.213 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003318/1.091, allocations: 274.8 kB / 1.213 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001111/1.091, allocations: 31.91 kB / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.98e-05/1.092, allocations: 87.27 kB / 1.213 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of Backend: time 4.71e-07/1.092, allocations: 0 / 1.213 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005392/1.092, allocations: 130.4 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005933/1.093, allocations: 0.5887 MB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of Templates: time 0.003998/1.097, allocations: 0.9404 MB / 1.215 GB, free: 6.453 MB / 0.9356 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