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.001605/0.001605, allocations: 108.3 kB / 16.41 MB, free: 6.512 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.00184/0.00184, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.744/2.744, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 63.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.969/0.9705, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002197/0.9727, allocations: 0.6637 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001621/0.9744, allocations: 1.073 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.587e-05/0.9745, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.47e-05/0.9745, allocations: 3.938 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.571e-05/0.9746, allocations: 3.938 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.975, allocations: 47.83 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.9751, allocations: 43.91 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.9752, allocations: 11.98 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.699e-05/0.9753, allocations: 23.92 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.852e-05/0.9754, allocations: 27.91 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.9754, allocations: 4 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.87e-05/0.9755, allocations: 23.92 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.371e-05/0.9755, allocations: 11.92 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.995e-05/0.9756, allocations: 23.92 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.9757, allocations: 55.78 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.9757, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9757, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.9758, allocations: 4 kB / 1.21 GB, free: 11.61 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.0006145/0.9764, allocations: 367.2 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.9764, allocations: 8.031 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.9765, allocations: 8.844 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.9766, allocations: 162.2 kB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.9766, allocations: 12.31 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.9767, allocations: 12.3 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.9769, allocations: 58.23 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.9769, allocations: 4.188 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.9769, allocations: 7.938 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.9769, allocations: 0 / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.9771, allocations: 43.95 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004815/0.9776, allocations: 272.8 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.9778, allocations: 66.42 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.978, allocations: 36.95 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.978, allocations: 4.062 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.9782, allocations: 79.36 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.9782, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004288/0.9787, allocations: 125.6 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.9787, allocations: 51.41 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.961e-05/0.9788, allocations: 105.8 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.9788, allocations: 29.7 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.9789, allocations: 91.98 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.9789, allocations: 15.75 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.979, allocations: 25.7 kB / 1.212 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9791, allocations: 322.8 kB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.9792, allocations: 23.97 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.9793, allocations: 60.27 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.9795, allocations: 96.12 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.9796, allocations: 4 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002752/0.9798, allocations: 117.6 kB / 1.212 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.9799, allocations: 4 kB / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.9799, allocations: 0 / 1.212 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.9799, allocations: 4 kB / 1.212 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.98, allocations: 20.17 kB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.98, allocations: 0 / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.784e-05/0.9801, allocations: 19.89 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.9801, allocations: 4 kB / 1.213 GB, free: 9.141 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 9.185e-05/0.9802, allocations: 127.4 kB / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.9802, allocations: 0 / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003003/0.9805, allocations: 114 kB / 1.213 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.9806, allocations: 4.188 kB / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9806, allocations: 0 / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.9806, allocations: 3.938 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.981, allocations: 370.4 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.9811, allocations: 0 / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.447e-05/0.9811, allocations: 11.94 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.9811, allocations: 3.984 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.9812, allocations: 4 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9812, allocations: 0 / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.9812, allocations: 0 / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.9815, allocations: 199.4 kB / 1.213 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.9815, allocations: 81.02 kB / 1.213 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.9816, allocations: 0 / 1.213 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.9817, allocations: 11.98 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.9817, allocations: 0 / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.9818, allocations: 15.88 kB / 1.213 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.101e-05/0.9818, allocations: 83.27 kB / 1.214 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9818, allocations: 0 / 1.214 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002527/0.9821, allocations: 24 kB / 1.214 GB, free: 8 MB / 0.9356 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.00015/0.9822, allocations: 103.2 kB / 1.214 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002656/0.9825, allocations: 71.88 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9825, allocations: 0 / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.9826, allocations: 35.95 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.9829, allocations: 12.25 kB / 1.214 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003741/0.9833, allocations: 167.8 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.9835, allocations: 0.6807 MB / 1.215 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.9836, allocations: 11.44 kB / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.9836, allocations: 0 / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of Templates: time 0.002467/0.986, allocations: 0.925 MB / 1.215 GB, free: 5.941 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