Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 109.8 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.001545/0.001545, allocations: 188.3 kB / 17.35 MB, free: 5.734 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.52/1.52, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.51/2.51, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001578, allocations: 59.89 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.114/1.116, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001983/1.118, allocations: 0.6745 MB / 1.168 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00158/1.119, allocations: 1.064 MB / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.962e-05/1.119, allocations: 0 / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.087e-05/1.119, allocations: 7.938 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.78e-05/1.119, allocations: 3.938 kB / 1.169 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/1.12, allocations: 51.83 kB / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001178/1.12, allocations: 47.84 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/1.12, allocations: 11.98 kB / 1.169 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.992e-05/1.12, allocations: 15.94 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.44e-05/1.12, allocations: 31.89 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/1.12, allocations: 4 kB / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.53e-05/1.12, allocations: 23.92 kB / 1.169 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.344e-05/1.12, allocations: 11.98 kB / 1.169 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/1.12, allocations: 23.81 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/1.121, allocations: 55.36 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.121, allocations: 0 / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.104e-06/1.121, allocations: 0 / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.47e-06/1.121, allocations: 0 / 1.169 GB, free: 1.781 MB / 0.8887 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.0007047/1.121, allocations: 376.2 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/1.121, allocations: 12.92 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.095e-05/1.121, allocations: 0.9375 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/1.122, allocations: 172.3 kB / 1.17 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/1.122, allocations: 8.359 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/1.122, allocations: 4.375 kB / 1.17 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/1.122, allocations: 70.16 kB / 1.17 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/1.122, allocations: 192 / 1.17 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/1.122, allocations: 7.922 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/1.122, allocations: 0 / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/1.122, allocations: 51.94 kB / 1.17 GB, free: 1 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/1.123, allocations: 272.9 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/1.123, allocations: 62.42 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/1.123, allocations: 36.95 kB / 1.17 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/1.123, allocations: 4 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/1.123, allocations: 71.38 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/1.123, allocations: 0 / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004499/1.124, allocations: 125.6 kB / 1.17 GB, free: 368 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/1.124, allocations: 63.34 kB / 1.171 GB, free: 292 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.711e-05/1.124, allocations: 101.8 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/1.124, allocations: 33.7 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.618e-05/1.124, allocations: 80.14 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/1.124, allocations: 23.8 kB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/1.124, allocations: 25.7 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000142/1.124, allocations: 314.8 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/1.124, allocations: 31.97 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/1.124, allocations: 56.52 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/1.125, allocations: 100.2 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/1.125, allocations: 3.938 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002769/1.125, allocations: 113.5 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/1.125, allocations: 4 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/1.125, allocations: 4.188 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/1.125, allocations: 4.125 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/1.125, allocations: 19.92 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/1.125, allocations: 7.938 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.332e-05/1.125, allocations: 11.94 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/1.125, allocations: 7.938 kB / 1.171 GB, free: 15.29 MB / 0.9044 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.809e-05/1.125, allocations: 117.8 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/1.125, allocations: 4 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/1.126, allocations: 110 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/1.126, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/1.126, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/1.126, allocations: 85.05 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/1.126, allocations: 8 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.938e-05/1.126, allocations: 7.984 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.834e-05/1.126, allocations: 7.938 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003393/1.126, allocations: 188.9 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003359/1.127, allocations: 274.7 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001096/1.127, allocations: 31.97 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.882e-05/1.127, allocations: 83.27 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of Backend: time 4.3e-07/1.127, allocations: 4 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005177/1.127, allocations: 128.3 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0005564/1.128, allocations: 0.5848 MB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of Templates: time 0.003556/1.131, allocations: 0.9402 MB / 1.174 GB, free: 12.63 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches