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.001459/0.001459, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001825/0.001825, allocations: 190.8 kB / 16.14 MB, free: 6.711 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.447/1.447, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.651/2.651, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.91 kB / 0.8685 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8722/0.8735, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002081/0.8756, allocations: 0.7341 MB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.8768, allocations: 1.058 MB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.8769, allocations: 0 / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.119e-05/0.8769, allocations: 3.938 kB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.698e-05/0.877, allocations: 7.922 kB / 1.018 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.8772, allocations: 35.97 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.57e-05/0.8773, allocations: 47.84 kB / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.8774, allocations: 15.98 kB / 1.018 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.697e-05/0.8775, allocations: 15.94 kB / 1.018 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.871e-05/0.8775, allocations: 23.91 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.8775, allocations: 0 / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.8776, allocations: 19.98 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.191e-05/0.8776, allocations: 15.91 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.42e-05/0.8777, allocations: 15.94 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.8778, allocations: 51.84 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.8778, allocations: 3.984 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8778, allocations: 7.938 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.8778, allocations: 0 / 1.019 GB, free: 0.7305 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.0005751/0.8784, allocations: 373.3 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.8784, allocations: 11.97 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.8785, allocations: 4.938 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.8786, allocations: 164.3 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.8786, allocations: 8.359 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.8786, allocations: 4.375 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.8788, allocations: 66.23 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.8789, allocations: 4.125 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.8789, allocations: 7.922 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.8789, allocations: 0 / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.8791, allocations: 43.97 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004063/0.8795, allocations: 284.8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.8797, allocations: 58.48 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.8798, allocations: 36.95 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.8798, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.88, allocations: 79.31 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.88, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000423/0.8805, allocations: 125.5 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.8805, allocations: 51.41 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.078e-05/0.8806, allocations: 105.8 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.8806, allocations: 29.7 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.8807, allocations: 88.08 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.8807, allocations: 23.86 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.8807, allocations: 21.72 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.8809, allocations: 318.8 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.881, allocations: 23.98 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.8811, allocations: 64.2 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.8813, allocations: 96.12 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8813, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002779/0.8816, allocations: 121.4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.8816, allocations: 8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.8816, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.8817, allocations: 7.969 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.8818, allocations: 19.98 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.8818, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.8819, allocations: 12.11 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.8819, allocations: 4 kB / 1.021 GB, free: 14.25 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 8.73e-05/0.882, allocations: 127.8 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.882, allocations: 7.906 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002823/0.8823, allocations: 102 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.8823, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.8823, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.8823, allocations: 11.98 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004407/0.8828, allocations: 363 kB / 1.021 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.8828, allocations: 0 / 1.021 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.685e-05/0.8828, allocations: 15.92 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8829, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.8829, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8829, allocations: 256 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.8829, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.8832, allocations: 215.3 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.249e-05/0.8832, allocations: 81.11 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.8832, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.8834, allocations: 7.984 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.8834, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.8834, allocations: 19.92 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.478e-05/0.8835, allocations: 79.28 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8835, allocations: 0 / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002518/0.8837, allocations: 16 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.0001409/0.8839, allocations: 111.2 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002671/0.8841, allocations: 71.88 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.8842, allocations: 4.25 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.8843, allocations: 31.97 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.8846, allocations: 8 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.0003478/0.8849, allocations: 161 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.8852, allocations: 0.6848 MB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.435e-05/0.8852, allocations: 4 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.8853, allocations: 15.42 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8853, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of Templates: time 0.003102/0.8884, allocations: 0.7444 MB / 1.024 GB, free: 11.24 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=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/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