Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001414/0.001414, 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.001318/0.001318, allocations: 192.9 kB / 16.13 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.702/1.702, allocations: 251.6 MB / 0.5088 GB, free: 3.332 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 67.91 kB / 0.6216 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5704/0.5717, allocations: 104.7 MB / 0.7238 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.003128/0.5749, allocations: 1.451 MB / 0.7252 GB, free: 11.85 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006339/0.5755, allocations: 228.1 kB / 0.7255 GB, free: 11.62 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.497e-05/0.5756, allocations: 4 kB / 0.7255 GB, free: 11.62 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.5756, allocations: 0 / 0.7255 GB, free: 11.62 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.87e-05/0.5758, allocations: 3.938 kB / 0.7255 GB, free: 11.62 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.576, allocations: 23.97 kB / 0.7255 GB, free: 11.59 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.297e-05/0.5761, allocations: 51.78 kB / 0.7255 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.5762, allocations: 12 kB / 0.7255 GB, free: 11.53 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.253e-05/0.5763, allocations: 19.92 kB / 0.7256 GB, free: 11.51 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.868e-05/0.5763, allocations: 15.92 kB / 0.7256 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.5764, allocations: 4 kB / 0.7256 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.479e-05/0.5764, allocations: 4 kB / 0.7256 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.5764, allocations: 11.97 kB / 0.7256 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.842e-05/0.5765, allocations: 19.86 kB / 0.7256 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.876e-05/0.5766, allocations: 39.88 kB / 0.7257 GB, free: 11.42 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5766, allocations: 0 / 0.7257 GB, free: 11.42 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5766, allocations: 0 / 0.7257 GB, free: 11.42 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.5766, allocations: 4 kB / 0.7257 GB, free: 11.41 MB / 0.545 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.0007199/0.5773, allocations: 365.4 kB / 0.726 GB, free: 11.01 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5774, allocations: 8.031 kB / 0.726 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.5774, allocations: 8.938 kB / 0.726 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.5776, allocations: 176.3 kB / 0.7262 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.5776, allocations: 384 / 0.7262 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.5776, allocations: 8.312 kB / 0.7262 GB, free: 10.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.5778, allocations: 70.22 kB / 0.7263 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.5779, allocations: 192 / 0.7263 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.5779, allocations: 7.938 kB / 0.7263 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-06/0.5779, allocations: 0 / 0.7263 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.5781, allocations: 39.95 kB / 0.7263 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004461/0.5785, allocations: 272.8 kB / 0.7266 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.5787, allocations: 66.42 kB / 0.7266 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.5788, allocations: 32.95 kB / 0.7267 GB, free: 10.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.5789, allocations: 0 / 0.7267 GB, free: 10.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002598/0.5791, allocations: 79.38 kB / 0.7267 GB, free: 10.14 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.5792, allocations: 0 / 0.7267 GB, free: 10.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004421/0.5796, allocations: 137.5 kB / 0.7269 GB, free: 9.996 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.5797, allocations: 51.41 kB / 0.7269 GB, free: 9.934 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.5798, allocations: 113.8 kB / 0.727 GB, free: 9.812 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.5798, allocations: 29.7 kB / 0.7271 GB, free: 9.777 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.567e-05/0.5799, allocations: 88.08 kB / 0.7271 GB, free: 9.688 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.5799, allocations: 15.81 kB / 0.7272 GB, free: 9.672 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.535e-05/0.5799, allocations: 29.7 kB / 0.7272 GB, free: 9.637 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5801, allocations: 314.8 kB / 0.7275 GB, free: 9.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.5802, allocations: 23.97 kB / 0.7275 GB, free: 9.297 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.5803, allocations: 64.27 kB / 0.7276 GB, free: 9.219 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.5806, allocations: 92.12 kB / 0.7277 GB, free: 9.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5806, allocations: 0 / 0.7277 GB, free: 9.113 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002879/0.5809, allocations: 117.4 kB / 0.7278 GB, free: 8.992 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.5809, allocations: 8 kB / 0.7278 GB, free: 8.984 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5809, allocations: 0 / 0.7278 GB, free: 8.984 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.5809, allocations: 3.984 kB / 0.7278 GB, free: 8.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.5811, allocations: 19.94 kB / 0.7278 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.5811, allocations: 3.984 kB / 0.7278 GB, free: 8.957 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.728e-05/0.5811, allocations: 4.125 kB / 0.7278 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.5812, allocations: 8 kB / 0.7278 GB, free: 8.945 MB / 0.545 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.000134/0.5813, allocations: 121.7 kB / 0.7279 GB, free: 8.816 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.5813, allocations: 11.89 kB / 0.7279 GB, free: 8.805 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003436/0.5817, allocations: 109.9 kB / 0.7281 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5817, allocations: 0 / 0.7281 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5817, allocations: 0 / 0.7281 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.5817, allocations: 4 kB / 0.7281 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/0.5823, allocations: 358.8 kB / 0.7284 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5823, allocations: 4 kB / 0.7284 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.5824, allocations: 15.92 kB / 0.7284 GB, free: 8.262 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.5824, allocations: 0 / 0.7284 GB, free: 8.262 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.5824, allocations: 3.938 kB / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.5824, allocations: 0 / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5824, allocations: 0 / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.5828, allocations: 207.3 kB / 0.7286 GB, free: 8.039 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.5828, allocations: 81.11 kB / 0.7287 GB, free: 7.941 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.5829, allocations: 0 / 0.7287 GB, free: 7.941 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.583, allocations: 8.172 kB / 0.7287 GB, free: 7.934 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.583, allocations: 7.984 kB / 0.7287 GB, free: 7.926 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.5831, allocations: 15.88 kB / 0.7287 GB, free: 7.91 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.171e-05/0.5831, allocations: 83.28 kB / 0.7288 GB, free: 7.828 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5831, allocations: 0 / 0.7288 GB, free: 7.828 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002451/0.5834, allocations: 12 kB / 0.7288 GB, free: 7.816 MB / 0.545 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.0001403/0.5835, allocations: 107.2 kB / 0.7289 GB, free: 7.703 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002859/0.5838, allocations: 68.44 kB / 0.729 GB, free: 7.637 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.5838, allocations: 4.25 kB / 0.729 GB, free: 7.633 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.584, allocations: 31.97 kB / 0.729 GB, free: 7.602 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.5843, allocations: 8 kB / 0.729 GB, free: 7.594 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004275/0.5847, allocations: 147.1 kB / 0.7292 GB, free: 7.422 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.585, allocations: 0.6848 MB / 0.7298 GB, free: 6.711 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.394e-05/0.5851, allocations: 4 kB / 0.7298 GB, free: 6.707 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.5851, allocations: 15.42 kB / 0.7299 GB, free: 6.691 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.5851, allocations: 3.938 kB / 0.7299 GB, free: 6.688 MB / 0.545 GB Notification: Performance of Templates: time 0.003041/0.5882, allocations: 0.6088 MB / 0.7305 GB, free: 6.086 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)