Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001358/0.001358, allocations: 113.6 kB / 16.81 MB, free: 5.766 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.001311/0.001311, allocations: 196.7 kB / 17.77 MB, free: 5.117 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.611/1.611, allocations: 225.6 MB / 244.2 MB, free: 13.89 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.078/3.078, allocations: 476.7 MB / 0.7556 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 65.36 kB / 1.097 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4601/0.4621, allocations: 168.7 MB / 1.262 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002241/0.4643, allocations: 0.6813 MB / 1.263 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.4662, allocations: 1.061 MB / 1.264 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.875e-05/0.4662, allocations: 0 / 1.264 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.99e-05/0.4663, allocations: 3.938 kB / 1.264 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.664e-05/0.4663, allocations: 7.922 kB / 1.264 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.4668, allocations: 47.83 kB / 1.264 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.4669, allocations: 43.86 kB / 1.264 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.467, allocations: 11.98 kB / 1.264 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.234e-05/0.4671, allocations: 19.97 kB / 1.264 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.066e-05/0.4672, allocations: 27.86 kB / 1.264 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.4672, allocations: 4 kB / 1.264 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.476e-05/0.4673, allocations: 23.92 kB / 1.264 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.857e-05/0.4673, allocations: 11.98 kB / 1.264 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.4673, allocations: 27.84 kB / 1.264 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.4675, allocations: 51.8 kB / 1.264 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4675, allocations: 0 / 1.264 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4675, allocations: 0 / 1.264 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.4676, allocations: 0 / 1.264 GB, free: 10.97 MB / 0.9825 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.0007478/0.4683, allocations: 371.3 kB / 1.264 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.4683, allocations: 8.031 kB / 1.264 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.4684, allocations: 4.938 kB / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.4686, allocations: 180.3 kB / 1.265 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.4686, allocations: 4.375 kB / 1.265 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.4686, allocations: 4.375 kB / 1.265 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/0.4688, allocations: 66.16 kB / 1.265 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.4688, allocations: 4.188 kB / 1.265 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.4689, allocations: 11.88 kB / 1.265 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4689, allocations: 3.938 kB / 1.265 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.4691, allocations: 43.95 kB / 1.265 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005736/0.4696, allocations: 272.8 kB / 1.265 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.4698, allocations: 66.42 kB / 1.265 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.4699, allocations: 24.97 kB / 1.265 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.47, allocations: 0 / 1.265 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.4702, allocations: 79.41 kB / 1.265 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.4702, allocations: 0 / 1.265 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004826/0.4707, allocations: 129.6 kB / 1.265 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.4707, allocations: 55.34 kB / 1.265 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.4709, allocations: 105.8 kB / 1.265 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.4709, allocations: 29.7 kB / 1.265 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.089e-05/0.471, allocations: 84.14 kB / 1.265 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.001e-05/0.471, allocations: 20.92 kB / 1.266 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.4711, allocations: 21.72 kB / 1.266 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002022/0.4713, allocations: 322.8 kB / 1.266 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.4714, allocations: 23.98 kB / 1.266 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.4715, allocations: 56.27 kB / 1.266 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.4717, allocations: 96.19 kB / 1.266 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.4717, allocations: 3.938 kB / 1.266 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003043/0.472, allocations: 117.6 kB / 1.266 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4721, allocations: 8 kB / 1.266 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4721, allocations: 4 kB / 1.266 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.4721, allocations: 0 / 1.266 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.4722, allocations: 15.98 kB / 1.266 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4722, allocations: 7.938 kB / 1.266 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.835e-05/0.4723, allocations: 15.98 kB / 1.266 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.4723, allocations: 4 kB / 1.266 GB, free: 8.492 MB / 0.9825 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.0001321/0.4724, allocations: 122.5 kB / 1.266 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.4725, allocations: 15.97 kB / 1.266 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00032/0.4728, allocations: 113.9 kB / 1.266 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4728, allocations: 0 / 1.266 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4728, allocations: 0 / 1.266 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.142e-05/0.4729, allocations: 77.11 kB / 1.266 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.4729, allocations: 4 kB / 1.266 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.4729, allocations: 11.92 kB / 1.267 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.473, allocations: 16.36 kB / 1.267 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004559/0.4734, allocations: 176.9 kB / 1.267 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003812/0.4738, allocations: 283 kB / 1.267 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001174/0.4739, allocations: 39.97 kB / 1.267 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.052e-05/0.474, allocations: 83.28 kB / 1.267 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of Backend: time 2.6e-07/0.474, allocations: 0 / 1.267 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005579/0.4746, allocations: 126.3 kB / 1.267 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0007304/0.4753, allocations: 0.5926 MB / 1.268 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of Templates: time 0.004737/0.48, allocations: 0.9401 MB / 1.269 GB, free: 5.809 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches