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.001327/0.001327, allocations: 110.7 kB / 16.41 MB, free: 6.492 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.001406/0.001406, allocations: 187 kB / 17.34 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.263/1.263, 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.441/2.441, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001396, allocations: 63.91 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6972/0.6986, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001792/0.7004, allocations: 0.674 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.7017, allocations: 1.073 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.501e-05/0.7018, allocations: 4 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.7019, allocations: 3.938 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.755e-05/0.702, allocations: 3.938 kB / 1.21 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.7023, allocations: 43.83 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.7024, allocations: 51.84 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.7025, allocations: 11.98 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.867e-05/0.7026, allocations: 23.86 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.7027, allocations: 23.91 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.7027, allocations: 8 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.7028, allocations: 19.98 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.7028, allocations: 7.984 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.118e-05/0.7029, allocations: 27.86 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.703, allocations: 55.84 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.703, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.034e-06/0.703, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.703, allocations: 0 / 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.0006231/0.7037, allocations: 371.2 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.7037, allocations: 8.031 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.7038, allocations: 8.844 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.7039, allocations: 166.2 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.7039, allocations: 8.312 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.7039, allocations: 4.375 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.7041, allocations: 62.22 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.7041, allocations: 192 / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.7042, allocations: 7.938 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.7042, allocations: 11.98 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.7043, allocations: 39.95 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000422/0.7048, allocations: 276.7 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.705, allocations: 62.48 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.98e-05/0.7051, allocations: 36.95 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.7051, allocations: 4.062 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.7053, allocations: 75.38 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.7053, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.000398/0.7057, allocations: 125.6 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.7058, allocations: 55.41 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.436e-05/0.7058, allocations: 101.9 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.7059, allocations: 25.7 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.7059, allocations: 99.97 kB / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.7059, allocations: 7.812 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/0.706, allocations: 33.64 kB / 1.212 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.7061, allocations: 310.8 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.7062, allocations: 35.97 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.7063, allocations: 56.27 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.7065, allocations: 96.33 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.7065, allocations: 0 / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002704/0.7068, allocations: 117.6 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.7068, allocations: 7.984 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.7069, allocations: 4.125 kB / 1.213 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.7069, allocations: 4 kB / 1.213 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.707, allocations: 19.92 kB / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.707, allocations: 0 / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.285e-05/0.7071, allocations: 15.91 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.7071, allocations: 0 / 1.213 GB, free: 9.145 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 8.096e-05/0.7072, allocations: 131.6 kB / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.7072, allocations: 0 / 1.213 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.7075, allocations: 113.9 kB / 1.213 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.7075, allocations: 7.938 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.7075, allocations: 0 / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7075, allocations: 0 / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.7079, allocations: 362.3 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7079, allocations: 0 / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.276e-05/0.708, allocations: 15.98 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.708, allocations: 0 / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.708, allocations: 0 / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.708, allocations: 4 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.708, allocations: 3.984 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.7083, allocations: 191.9 kB / 1.213 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.7084, allocations: 81.02 kB / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.7084, allocations: 7.984 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/0.7085, allocations: 12 kB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.7085, allocations: 8.016 kB / 1.213 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.7086, allocations: 7.938 kB / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4e-05/0.7086, allocations: 91.2 kB / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7086, allocations: 0 / 1.214 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002511/0.7089, allocations: 16 kB / 1.214 GB, free: 8.004 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.0001344/0.709, allocations: 107.4 kB / 1.214 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002525/0.7093, allocations: 67.88 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.7093, allocations: 3.938 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.7094, allocations: 36.05 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.0002481/0.7096, allocations: 8.141 kB / 1.214 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003229/0.71, allocations: 175.9 kB / 1.214 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.7102, allocations: 0.6885 MB / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/0.7103, allocations: 11.44 kB / 1.215 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of SimCode: time 3.91e-07/0.7103, allocations: 0 / 1.215 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of Templates: time 0.002355/0.7126, allocations: 0.8974 MB / 1.215 GB, free: 5.957 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