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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008113/0.0008113, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008101/0.0008101, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.76/2.76, allocations: 437.7 MB / 0.7117 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004738/0.0004739, allocations: 15.98 kB / 0.8722 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8479/0.8484, allocations: 153.8 MB / 1.022 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001085/0.8496, allocations: 400.8 kB / 1.023 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.8512, allocations: 1.043 MB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.608e-05/0.8513, allocations: 3.938 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.8513, allocations: 0 / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.77e-05/0.8514, allocations: 7.922 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.8517, allocations: 31.97 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.54e-05/0.8518, allocations: 43.84 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.911e-05/0.8519, allocations: 15.98 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.852, allocations: 15.92 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.891e-05/0.852, allocations: 19.92 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.852, allocations: 0 / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.239e-05/0.8521, allocations: 15.98 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.8522, allocations: 19.91 kB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.822e-05/0.8522, allocations: 29.7 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.8523, allocations: 35.92 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.8523, allocations: 0 / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.536e-06/0.8523, allocations: 4 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.8524, allocations: 0 / 1.024 GB, free: 14.33 MB / 0.7794 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.0006216/0.853, allocations: 365.2 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.853, allocations: 8.031 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.8531, allocations: 7.906 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.8533, allocations: 167 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.8533, allocations: 12 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.8534, allocations: 3.984 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.8536, allocations: 73.61 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.8536, allocations: 3.938 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.8537, allocations: 7.984 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.8537, allocations: 0 / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.8539, allocations: 55.95 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.8545, allocations: 280.8 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.8547, allocations: 66.48 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.8548, allocations: 40.95 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.8548, allocations: 0 / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.8551, allocations: 83.38 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.8551, allocations: 0 / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005166/0.8556, allocations: 141.6 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.8557, allocations: 55.41 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.8559, allocations: 105.8 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.8559, allocations: 25.7 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.856, allocations: 91.98 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.856, allocations: 19.75 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.856, allocations: 0 / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.8562, allocations: 318.8 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.8564, allocations: 35.97 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.8565, allocations: 60.28 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.8566, allocations: 51.86 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.8567, allocations: 0 / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002957/0.857, allocations: 129.5 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.857, allocations: 4 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.857, allocations: 4 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.857, allocations: 0 / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.8572, allocations: 23.92 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.8572, allocations: 0 / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.369e-05/0.8573, allocations: 16.08 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.8573, allocations: 4 kB / 1.026 GB, free: 11.88 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.8575, allocations: 125.7 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.8575, allocations: 4 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.8578, allocations: 118 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.8578, allocations: 4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.8579, allocations: 0 / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.8579, allocations: 3.984 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005208/0.8584, allocations: 382.3 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.8584, allocations: 4 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/0.8585, allocations: 11.98 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.8585, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.8585, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.8585, allocations: 4.25 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8585, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.8589, allocations: 215.4 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.953e-05/0.8589, allocations: 81.02 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.859, allocations: 4 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.946e-05/0.8591, allocations: 15.98 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.8591, allocations: 3.938 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.8592, allocations: 7.984 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.967e-05/0.8592, allocations: 83.28 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8592, allocations: 0 / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002532/0.8595, allocations: 16.19 kB / 1.027 GB, free: 10.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002699/0.8598, allocations: 107.2 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003093/0.8601, allocations: 83.83 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8601, allocations: 0 / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.8602, allocations: 39.97 kB / 1.027 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.8606, allocations: 16.2 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.8611, allocations: 146.8 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.8614, allocations: 0.6904 MB / 1.028 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.612e-05/0.8615, allocations: 4.188 kB / 1.028 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.607e-05/0.8615, allocations: 11.44 kB / 1.028 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8615, allocations: 3.938 kB / 1.028 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of Templates: time 0.003831/0.8654, allocations: 0.7176 MB / 1.029 GB, free: 8.844 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