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.00103/0.00103, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01014/0.01014, allocations: 175.6 kB / 16.27 MB, free: 6.613 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.639/1.639, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.611/1.611, allocations: 252 MB / 0.5105 GB, free: 4.613 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.0005424/0.0005425, allocations: 12 kB / 0.6249 GB, free: 0.7227 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5794/0.5799, allocations: 106.3 MB / 0.7287 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00178/0.5817, allocations: 1.112 MB / 0.7298 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000587/0.5824, allocations: 224.2 kB / 0.73 GB, free: 9.938 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.074e-05/0.5824, allocations: 4 kB / 0.73 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.5825, allocations: 0 / 0.73 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.133e-05/0.5825, allocations: 3.938 kB / 0.73 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.5828, allocations: 23.92 kB / 0.7301 GB, free: 9.906 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.5829, allocations: 55.83 kB / 0.7301 GB, free: 9.852 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.583, allocations: 8 kB / 0.7301 GB, free: 9.844 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.5831, allocations: 19.92 kB / 0.7301 GB, free: 9.824 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.447e-05/0.5832, allocations: 19.86 kB / 0.7302 GB, free: 9.805 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.5833, allocations: 0 / 0.7302 GB, free: 9.805 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.31e-05/0.5833, allocations: 4 kB / 0.7302 GB, free: 9.801 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.5833, allocations: 0 / 0.7302 GB, free: 9.801 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.713e-05/0.5834, allocations: 53.55 kB / 0.7302 GB, free: 9.742 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.5835, allocations: 39.86 kB / 0.7303 GB, free: 9.703 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5835, allocations: 4 kB / 0.7303 GB, free: 9.699 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.186e-06/0.5836, allocations: 0 / 0.7303 GB, free: 9.699 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.5836, allocations: 0 / 0.7303 GB, free: 9.699 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.0007317/0.5843, allocations: 369.3 kB / 0.7306 GB, free: 9.289 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.5844, allocations: 12.03 kB / 0.7306 GB, free: 9.277 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.667e-05/0.5844, allocations: 4.938 kB / 0.7306 GB, free: 9.273 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.5846, allocations: 168.3 kB / 0.7308 GB, free: 9.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.5846, allocations: 384 / 0.7308 GB, free: 9.07 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.5846, allocations: 8.359 kB / 0.7308 GB, free: 9.062 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.5848, allocations: 66.23 kB / 0.7309 GB, free: 8.992 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.5848, allocations: 192 / 0.7309 GB, free: 8.992 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.5849, allocations: 3.938 kB / 0.7309 GB, free: 8.988 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.5849, allocations: 3.984 kB / 0.7309 GB, free: 8.984 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.5851, allocations: 63.89 kB / 0.7309 GB, free: 8.922 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.5856, allocations: 280.7 kB / 0.7312 GB, free: 8.598 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.5858, allocations: 70.48 kB / 0.7313 GB, free: 8.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.5859, allocations: 36.95 kB / 0.7313 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.5859, allocations: 0 / 0.7313 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.5861, allocations: 83.38 kB / 0.7314 GB, free: 8.387 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.5861, allocations: 3.938 kB / 0.7314 GB, free: 8.383 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004444/0.5866, allocations: 141.6 kB / 0.7315 GB, free: 8.238 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.5867, allocations: 55.41 kB / 0.7316 GB, free: 8.172 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.979e-05/0.5868, allocations: 106 kB / 0.7317 GB, free: 8.059 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.5868, allocations: 29.7 kB / 0.7317 GB, free: 8.023 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.5869, allocations: 84.12 kB / 0.7318 GB, free: 7.938 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.5869, allocations: 15.81 kB / 0.7318 GB, free: 7.922 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.5869, allocations: 21.72 kB / 0.7318 GB, free: 7.895 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5871, allocations: 314.8 kB / 0.7321 GB, free: 7.578 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.5872, allocations: 35.97 kB / 0.7321 GB, free: 7.543 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.5873, allocations: 64.22 kB / 0.7322 GB, free: 7.465 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.5876, allocations: 112.3 kB / 0.7323 GB, free: 7.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5876, allocations: 0 / 0.7323 GB, free: 7.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002863/0.5879, allocations: 133.5 kB / 0.7324 GB, free: 7.203 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5879, allocations: 4 kB / 0.7324 GB, free: 7.199 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.5879, allocations: 12 kB / 0.7325 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.5879, allocations: 0 / 0.7325 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.588, allocations: 19.98 kB / 0.7325 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.5881, allocations: 0 / 0.7325 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.925e-05/0.5881, allocations: 11.98 kB / 0.7325 GB, free: 7.156 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.5881, allocations: 4 kB / 0.7325 GB, free: 7.152 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 9.916e-05/0.5883, allocations: 129.7 kB / 0.7326 GB, free: 7.016 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.5883, allocations: 11.84 kB / 0.7326 GB, free: 7.004 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/0.5886, allocations: 114.3 kB / 0.7327 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5886, allocations: 4 kB / 0.7327 GB, free: 6.883 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.5886, allocations: 4 kB / 0.7327 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.5886, allocations: 3.984 kB / 0.7327 GB, free: 6.875 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004769/0.5891, allocations: 366.4 kB / 0.7331 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.5891, allocations: 4 kB / 0.7331 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/0.5892, allocations: 15.98 kB / 0.7331 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5892, allocations: 3.938 kB / 0.7331 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.5892, allocations: 0 / 0.7331 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.5892, allocations: 4 kB / 0.7331 GB, free: 6.434 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5892, allocations: 0 / 0.7331 GB, free: 6.434 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003179/0.5896, allocations: 215.3 kB / 0.7333 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.5896, allocations: 81.11 kB / 0.7334 GB, free: 6.109 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.5896, allocations: 3.938 kB / 0.7334 GB, free: 6.105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.5897, allocations: 11.98 kB / 0.7334 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/0.5898, allocations: 8 kB / 0.7334 GB, free: 6.086 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.5898, allocations: 11.92 kB / 0.7334 GB, free: 6.074 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.858e-05/0.5899, allocations: 79.28 kB / 0.7335 GB, free: 5.996 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5899, allocations: 0 / 0.7335 GB, free: 5.996 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002359/0.5901, allocations: 16 kB / 0.7335 GB, free: 5.98 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.0001284/0.5902, allocations: 95.25 kB / 0.7336 GB, free: 5.879 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000279/0.5905, allocations: 87.88 kB / 0.7337 GB, free: 5.793 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5905, allocations: 0 / 0.7337 GB, free: 5.793 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.5907, allocations: 31.98 kB / 0.7337 GB, free: 5.762 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.591, allocations: 11.98 kB / 0.7337 GB, free: 5.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.5913, allocations: 160 kB / 0.7339 GB, free: 5.566 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.5917, allocations: 0.6809 MB / 0.7346 GB, free: 4.859 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.482e-05/0.5917, allocations: 7.984 kB / 0.7346 GB, free: 4.852 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.5918, allocations: 11.44 kB / 0.7346 GB, free: 4.84 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.5918, allocations: 3.938 kB / 0.7346 GB, free: 4.836 MB / 0.545 GB Notification: Performance of Templates: time 0.002902/0.5947, allocations: 0.6048 MB / 0.7352 GB, free: 4.242 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: