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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001471/0.001471, allocations: 194.2 kB / 16.25 MB, free: 6.625 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.779/1.779, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.716/1.716, allocations: 251.7 MB / 0.5089 GB, free: 3.316 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.001531/0.001531, allocations: 71.91 kB / 0.6218 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7009/0.7024, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003655/0.7061, allocations: 1.462 MB / 0.7254 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006865/0.7069, allocations: 240.1 kB / 0.7257 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.907e-05/0.7069, allocations: 4 kB / 0.7257 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.042e-05/0.707, allocations: 3.938 kB / 0.7257 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.112e-05/0.7071, allocations: 3.984 kB / 0.7257 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.7073, allocations: 23.92 kB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.7075, allocations: 79.81 kB / 0.7258 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.7076, allocations: 8 kB / 0.7258 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.7077, allocations: 31.86 kB / 0.7258 GB, free: 11.24 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.038e-05/0.7078, allocations: 27.91 kB / 0.7258 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.7079, allocations: 4 kB / 0.7258 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.7079, allocations: 8 kB / 0.7258 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.071e-05/0.7079, allocations: 19.91 kB / 0.7259 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.853e-05/0.708, allocations: 31.86 kB / 0.7259 GB, free: 11.15 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.7082, allocations: 55.83 kB / 0.7259 GB, free: 11.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.7082, allocations: 0 / 0.7259 GB, free: 11.1 MB / 0.545 GB Notification: Performance of FrontEnd: time 4.919e-06/0.7082, allocations: 8 kB / 0.7259 GB, free: 11.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.7082, allocations: 3.938 kB / 0.726 GB, free: 11.09 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008019/0.709, allocations: 377.2 kB / 0.7263 GB, free: 10.67 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.7091, allocations: 12.03 kB / 0.7263 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.7091, allocations: 12.84 kB / 0.7263 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.7093, allocations: 168.3 kB / 0.7265 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.7094, allocations: 4.375 kB / 0.7265 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.7094, allocations: 12.38 kB / 0.7265 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.7096, allocations: 82.14 kB / 0.7266 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.7097, allocations: 4.188 kB / 0.7266 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.7097, allocations: 3.938 kB / 0.7266 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.7097, allocations: 0 / 0.7266 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.7099, allocations: 59.89 kB / 0.7267 GB, free: 10.27 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006764/0.7106, allocations: 304.7 kB / 0.7269 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.7108, allocations: 94.45 kB / 0.727 GB, free: 9.824 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.7109, allocations: 40.83 kB / 0.7271 GB, free: 9.781 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.7109, allocations: 192 / 0.7271 GB, free: 9.781 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.7112, allocations: 95.31 kB / 0.7272 GB, free: 9.676 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.7112, allocations: 0 / 0.7272 GB, free: 9.676 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0004733/0.7116, allocations: 165.8 kB / 0.7273 GB, free: 9.508 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.7117, allocations: 63.39 kB / 0.7274 GB, free: 9.434 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.067e-05/0.7118, allocations: 109.8 kB / 0.7275 GB, free: 9.316 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.7118, allocations: 41.62 kB / 0.7275 GB, free: 9.27 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.967e-05/0.7119, allocations: 88.38 kB / 0.7276 GB, free: 9.176 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.7119, allocations: 27.75 kB / 0.7276 GB, free: 9.148 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.712, allocations: 29.66 kB / 0.7277 GB, free: 9.113 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.7121, allocations: 322.8 kB / 0.728 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.7123, allocations: 35.97 kB / 0.728 GB, free: 8.754 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.7124, allocations: 75.34 kB / 0.7281 GB, free: 8.668 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.7126, allocations: 103.3 kB / 0.7282 GB, free: 8.555 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.7126, allocations: 0 / 0.7282 GB, free: 8.555 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002883/0.7129, allocations: 145.4 kB / 0.7283 GB, free: 8.406 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.713, allocations: 8 kB / 0.7283 GB, free: 8.398 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.713, allocations: 0 / 0.7283 GB, free: 8.398 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.713, allocations: 0 / 0.7283 GB, free: 8.398 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.7131, allocations: 23.92 kB / 0.7283 GB, free: 8.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.7131, allocations: 3.938 kB / 0.7284 GB, free: 8.371 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.47e-05/0.7132, allocations: 15.98 kB / 0.7284 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.7132, allocations: 8.094 kB / 0.7284 GB, free: 8.348 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001136/0.7133, allocations: 121.7 kB / 0.7285 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.7134, allocations: 7.906 kB / 0.7285 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003361/0.7137, allocations: 145.9 kB / 0.7286 GB, free: 8.062 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.7137, allocations: 0 / 0.7286 GB, free: 8.062 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.7137, allocations: 0 / 0.7286 GB, free: 8.062 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.7137, allocations: 0 / 0.7286 GB, free: 8.062 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005948/0.7143, allocations: 414.4 kB / 0.729 GB, free: 7.602 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.7143, allocations: 4 kB / 0.729 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.046e-05/0.7144, allocations: 4 kB / 0.729 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.7144, allocations: 4 kB / 0.729 GB, free: 7.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.7144, allocations: 3.984 kB / 0.729 GB, free: 7.586 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.7144, allocations: 4.188 kB / 0.7291 GB, free: 7.582 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.7145, allocations: 0 / 0.7291 GB, free: 7.582 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.7148, allocations: 247.5 kB / 0.7293 GB, free: 7.324 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.73e-05/0.7148, allocations: 84.95 kB / 0.7294 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.7149, allocations: 3.984 kB / 0.7294 GB, free: 7.219 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.715, allocations: 15.98 kB / 0.7294 GB, free: 7.203 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.726e-05/0.715, allocations: 4 kB / 0.7294 GB, free: 7.199 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.7151, allocations: 7.938 kB / 0.7294 GB, free: 7.191 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.407e-05/0.7151, allocations: 91.27 kB / 0.7295 GB, free: 7.102 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/0.7151, allocations: 0 / 0.7295 GB, free: 7.102 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000231/0.7154, allocations: 12 kB / 0.7295 GB, free: 7.09 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001505/0.7155, allocations: 103.2 kB / 0.7296 GB, free: 6.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003053/0.7158, allocations: 99.81 kB / 0.7297 GB, free: 6.883 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7158, allocations: 4.188 kB / 0.7297 GB, free: 6.879 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.716, allocations: 47.97 kB / 0.7297 GB, free: 6.832 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.7163, allocations: 7.984 kB / 0.7297 GB, free: 6.824 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004346/0.7167, allocations: 178.1 kB / 0.7299 GB, free: 6.621 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.717, allocations: 0.6962 MB / 0.7306 GB, free: 5.898 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.768e-05/0.7171, allocations: 8.438 kB / 0.7306 GB, free: 5.891 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.793e-05/0.7171, allocations: 11.44 kB / 0.7306 GB, free: 5.879 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.7171, allocations: 0 / 0.7306 GB, free: 5.879 MB / 0.545 GB Notification: Performance of Templates: time 0.003195/0.7203, allocations: 0.836 MB / 0.7314 GB, free: 5.055 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)