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.00143/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001482/0.001482, allocations: 195.6 kB / 16.14 MB, free: 6.633 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.649/1.649, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.029/3.029, allocations: 437 MB / 0.7099 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 67.89 kB / 0.8686 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7652/0.7674, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002779/0.7703, allocations: 0.7341 MB / 1.017 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002037/0.7724, allocations: 1.062 MB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.7724, allocations: 0 / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.372e-05/0.7725, allocations: 0 / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.224e-05/0.7726, allocations: 7.922 kB / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.7729, allocations: 39.89 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.572e-05/0.773, allocations: 43.86 kB / 1.018 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.7732, allocations: 15.98 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.22e-05/0.7732, allocations: 15.92 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.955e-05/0.7733, allocations: 27.91 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.7733, allocations: 4 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.539e-05/0.7734, allocations: 19.91 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.09e-05/0.7735, allocations: 8 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.7735, allocations: 19.86 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.7737, allocations: 55.84 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.7737, allocations: 4 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.32e-07/0.7737, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.7737, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 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.0008887/0.7746, allocations: 377.3 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.7746, allocations: 11.97 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.7747, allocations: 4.938 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.7748, allocations: 168.3 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.7749, allocations: 384 / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.7749, allocations: 8.312 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.7751, allocations: 66.16 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.7751, allocations: 8.188 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.7752, allocations: 7.938 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.7752, allocations: 0 / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.7754, allocations: 39.95 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/0.7761, allocations: 280.9 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.7763, allocations: 62.42 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.7764, allocations: 32.95 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.7764, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.7767, allocations: 75.38 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.863e-06/0.7767, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004885/0.7772, allocations: 129.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.7773, allocations: 55.34 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.7775, allocations: 105.8 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.7775, allocations: 29.7 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.7776, allocations: 88.16 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.7776, allocations: 15.8 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.7777, allocations: 29.7 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001808/0.7779, allocations: 314.8 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.778, allocations: 27.97 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.7781, allocations: 56.27 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.7784, allocations: 100.1 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7784, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003144/0.7787, allocations: 121.5 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.7788, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.7788, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.7788, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.779, allocations: 15.98 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.779, allocations: 7.938 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.7791, allocations: 11.98 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.7791, allocations: 4.25 kB / 1.021 GB, free: 14.26 MB / 0.7794 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.0001163/0.7792, allocations: 128.8 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.7792, allocations: 3.906 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003196/0.7796, allocations: 110 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.7796, allocations: 8.031 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.7796, allocations: 7.875 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.7796, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.7802, allocations: 362.5 kB / 1.021 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7803, allocations: 0 / 1.021 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.7803, allocations: 8 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.7803, allocations: 4 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.7804, allocations: 7.984 kB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7804, allocations: 0 / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7804, allocations: 3.938 kB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.7807, allocations: 199.8 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.7808, allocations: 81.09 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.7808, allocations: 8 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.7809, allocations: 7.984 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.781, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.781, allocations: 3.938 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.849e-05/0.7811, allocations: 87.27 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7811, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002632/0.7813, allocations: 12 kB / 1.022 GB, free: 13.12 MB / 0.7794 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.0001874/0.7815, allocations: 103.2 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003015/0.7818, allocations: 71.86 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7818, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.782, allocations: 40.17 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.7823, allocations: 11.98 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004123/0.7827, allocations: 155.7 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.7832, allocations: 0.6848 MB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.972e-05/0.7832, allocations: 8 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.704e-05/0.7833, allocations: 7.438 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.7833, allocations: 4 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of Templates: time 0.00403/0.7873, allocations: 0.7501 MB / 1.024 GB, free: 11.25 MB / 0.7794 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=400 -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/jenkins/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