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.00171/0.00171, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002025/0.002025, allocations: 191.5 kB / 16.25 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.588/1.588, allocations: 222.9 MB / 239.9 MB, free: 4.543 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 2.836/2.836, allocations: 437 MB / 0.7101 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 67.89 kB / 0.8687 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8644/0.8666, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002394/0.8691, allocations: 0.7457 MB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.8709, allocations: 1.046 MB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.8709, allocations: 4 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.707e-05/0.871, allocations: 3.984 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.904e-05/0.8711, allocations: 7.922 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.8715, allocations: 35.92 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.8717, allocations: 51.83 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.8718, allocations: 12 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.8719, allocations: 23.86 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.872, allocations: 27.91 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.872, allocations: 4 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.322e-05/0.8721, allocations: 15.98 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.607e-05/0.8722, allocations: 11.98 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.394e-05/0.8722, allocations: 19.86 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.8725, allocations: 59.84 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.8725, allocations: 0 / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8725, allocations: 0 / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.8725, allocations: 4 kB / 1.019 GB, free: 0.6406 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.000794/0.8733, allocations: 373.2 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.8734, allocations: 12.03 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.8734, allocations: 0.9375 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.8736, allocations: 168.3 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.8737, allocations: 4.375 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.8737, allocations: 12.3 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.874, allocations: 74.11 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.874, allocations: 192 / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.874, allocations: 3.938 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.874, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.8742, allocations: 43.95 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006058/0.8748, allocations: 280.9 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.875, allocations: 62.42 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.8751, allocations: 32.95 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.8752, allocations: 4 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.8755, allocations: 75.38 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.8755, allocations: 0 / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004615/0.8759, allocations: 125.5 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.876, allocations: 55.41 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.8761, allocations: 105.9 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.8762, allocations: 25.7 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.81e-05/0.8762, allocations: 92.06 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.8763, allocations: 23.88 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.194e-05/0.8763, allocations: 25.7 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.8765, allocations: 314.8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.844e-05/0.8766, allocations: 27.97 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.8767, allocations: 56.27 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.8769, allocations: 96.14 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.8769, allocations: 3.984 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002713/0.8772, allocations: 113.4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.8772, allocations: 11.98 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.8773, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.8773, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.8774, allocations: 27.92 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.8774, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.704e-05/0.8775, allocations: 4.047 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.8775, allocations: 16.09 kB / 1.021 GB, free: 14.16 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.0001118/0.8776, allocations: 123.8 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.8777, allocations: 7.906 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003008/0.878, allocations: 106 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.878, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.878, allocations: 4.125 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.878, allocations: 4 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.8785, allocations: 366.4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8785, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.414e-05/0.8786, allocations: 15.92 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.8786, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.8786, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.8786, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.8786, allocations: 4.453 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.8789, allocations: 203.3 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.02e-05/0.879, allocations: 81.11 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.879, allocations: 3.984 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.46e-05/0.8791, allocations: 4.25 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.8792, allocations: 7.984 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.8792, allocations: 15.94 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.952e-05/0.8793, allocations: 87.27 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8793, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002493/0.8795, allocations: 16 kB / 1.022 GB, free: 13.02 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.0002043/0.8797, allocations: 99.19 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000296/0.8801, allocations: 79.86 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.8801, allocations: 256 / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.8802, allocations: 31.98 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.8805, allocations: 11.98 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/0.8809, allocations: 155.8 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.8813, allocations: 0.6904 MB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.771e-05/0.8813, allocations: 4 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.997e-05/0.8814, allocations: 11.44 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8814, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of Templates: time 0.00383/0.8852, allocations: 0.7751 MB / 1.024 GB, free: 11.12 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