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.001202/0.001202, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001305/0.001305, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.828/1.828, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.622/1.622, allocations: 251.9 MB / 0.51 GB, free: 4.832 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.0006024/0.0006025, allocations: 20 kB / 0.6241 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6243/0.6249, allocations: 106.3 MB / 0.728 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001968/0.6269, allocations: 1.092 MB / 0.7291 GB, free: 10.31 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005502/0.6275, allocations: 228.2 kB / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.985e-05/0.6276, allocations: 0 / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.6276, allocations: 7.938 kB / 0.7293 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.896e-05/0.6277, allocations: 0 / 0.7293 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.6279, allocations: 19.97 kB / 0.7293 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.923e-05/0.628, allocations: 27.97 kB / 0.7293 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.6281, allocations: 7.984 kB / 0.7293 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.675e-05/0.6282, allocations: 19.91 kB / 0.7294 GB, free: 10 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.6282, allocations: 19.92 kB / 0.7294 GB, free: 9.984 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.6283, allocations: 7.938 kB / 0.7294 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.6283, allocations: 4 kB / 0.7294 GB, free: 9.973 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/0.6283, allocations: 7.938 kB / 0.7294 GB, free: 9.965 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.244e-05/0.6284, allocations: 29.7 kB / 0.7294 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.101e-05/0.6285, allocations: 39.91 kB / 0.7295 GB, free: 9.891 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.6285, allocations: 0 / 0.7295 GB, free: 9.891 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.783e-06/0.6285, allocations: 0 / 0.7295 GB, free: 9.891 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.6285, allocations: 0 / 0.7295 GB, free: 9.891 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.00066/0.6292, allocations: 369.1 kB / 0.7298 GB, free: 9.484 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.6292, allocations: 8.031 kB / 0.7298 GB, free: 9.477 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.6293, allocations: 4 kB / 0.7298 GB, free: 9.473 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.6294, allocations: 163 kB / 0.73 GB, free: 9.273 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.6294, allocations: 7.938 kB / 0.73 GB, free: 9.266 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.6295, allocations: 8 kB / 0.73 GB, free: 9.258 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.6297, allocations: 69.66 kB / 0.7301 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.6297, allocations: 0 / 0.7301 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.6298, allocations: 4 kB / 0.7301 GB, free: 9.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.6298, allocations: 0 / 0.7301 GB, free: 9.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.63, allocations: 47.95 kB / 0.7301 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/0.6305, allocations: 284.8 kB / 0.7304 GB, free: 8.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.6307, allocations: 66.48 kB / 0.7304 GB, free: 8.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.6308, allocations: 4 kB / 0.7304 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.631, allocations: 83.56 kB / 0.7305 GB, free: 8.633 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.6311, allocations: 3.938 kB / 0.7305 GB, free: 8.629 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004875/0.6316, allocations: 145.5 kB / 0.7307 GB, free: 8.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.6316, allocations: 51.41 kB / 0.7307 GB, free: 8.418 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.6317, allocations: 113.7 kB / 0.7308 GB, free: 8.297 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.6318, allocations: 29.7 kB / 0.7309 GB, free: 8.262 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.6318, allocations: 84.05 kB / 0.7309 GB, free: 8.176 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.6319, allocations: 23.8 kB / 0.731 GB, free: 8.152 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.6319, allocations: 0 / 0.731 GB, free: 8.152 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.632, allocations: 318.8 kB / 0.7313 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.6321, allocations: 27.97 kB / 0.7313 GB, free: 7.805 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.6323, allocations: 64.28 kB / 0.7313 GB, free: 7.727 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.6324, allocations: 39.91 kB / 0.7314 GB, free: 7.688 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6324, allocations: 3.938 kB / 0.7314 GB, free: 7.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002906/0.6327, allocations: 129.5 kB / 0.7315 GB, free: 7.551 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.6327, allocations: 4 kB / 0.7315 GB, free: 7.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.6328, allocations: 0 / 0.7315 GB, free: 7.547 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.6328, allocations: 4 kB / 0.7315 GB, free: 7.543 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.6329, allocations: 24.05 kB / 0.7315 GB, free: 7.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.6329, allocations: 4 kB / 0.7315 GB, free: 7.516 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/0.633, allocations: 12 kB / 0.7316 GB, free: 7.504 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.633, allocations: 7.953 kB / 0.7316 GB, free: 7.496 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 ($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.0001379/0.6332, allocations: 121.8 kB / 0.7317 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.6332, allocations: 0 / 0.7317 GB, free: 7.367 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003338/0.6335, allocations: 130.1 kB / 0.7318 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.6335, allocations: 0 / 0.7318 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.6336, allocations: 4 kB / 0.7318 GB, free: 7.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6336, allocations: 0 / 0.7318 GB, free: 7.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005287/0.6341, allocations: 370.5 kB / 0.7322 GB, free: 6.812 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6341, allocations: 3.938 kB / 0.7322 GB, free: 6.809 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.394e-05/0.6342, allocations: 11.98 kB / 0.7322 GB, free: 6.797 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.6342, allocations: 4 kB / 0.7322 GB, free: 6.793 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.6342, allocations: 4 kB / 0.7322 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.6342, allocations: 4 kB / 0.7322 GB, free: 6.785 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6342, allocations: 0 / 0.7322 GB, free: 6.785 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003344/0.6346, allocations: 199.5 kB / 0.7324 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.896e-05/0.6346, allocations: 93.02 kB / 0.7325 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.6347, allocations: 4.172 kB / 0.7325 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.787e-05/0.6348, allocations: 12 kB / 0.7325 GB, free: 6.449 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.6349, allocations: 11.92 kB / 0.7325 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.6349, allocations: 0 / 0.7325 GB, free: 6.438 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.079e-05/0.635, allocations: 95.22 kB / 0.7326 GB, free: 6.344 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.274e-06/0.635, allocations: 0 / 0.7326 GB, free: 6.344 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002432/0.6352, allocations: 11.94 kB / 0.7326 GB, free: 6.332 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 (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.0001614/0.6354, allocations: 103.2 kB / 0.7327 GB, free: 6.223 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002999/0.6357, allocations: 75.89 kB / 0.7328 GB, free: 6.148 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6357, allocations: 0 / 0.7328 GB, free: 6.148 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.6358, allocations: 44.22 kB / 0.7328 GB, free: 6.105 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.6361, allocations: 7.938 kB / 0.7328 GB, free: 6.098 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/0.6364, allocations: 148.6 kB / 0.733 GB, free: 5.918 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.6368, allocations: 0.6848 MB / 0.7336 GB, free: 5.207 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.6368, allocations: 8.172 kB / 0.7336 GB, free: 5.199 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.6369, allocations: 15.38 kB / 0.7337 GB, free: 5.184 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.6369, allocations: 0 / 0.7337 GB, free: 5.184 MB / 0.545 GB Notification: Performance of Templates: time 0.003228/0.6401, allocations: 0.5677 MB / 0.7342 GB, free: 4.621 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: