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.00134/0.00134, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002624/0.002624, allocations: 198.4 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.691/1.691, allocations: 251.7 MB / 0.5092 GB, free: 3.152 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.001731/0.001731, allocations: 68.38 kB / 0.6223 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6941/0.6959, allocations: 104.7 MB / 0.7245 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00303/0.699, allocations: 1.391 MB / 0.7259 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005969/0.6996, allocations: 248.1 kB / 0.7261 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.988e-05/0.6997, allocations: 0 / 0.7261 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.664e-05/0.6997, allocations: 7.922 kB / 0.7261 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.316e-05/0.6998, allocations: 15.88 kB / 0.7261 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.7, allocations: 31.95 kB / 0.7262 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.7001, allocations: 67.78 kB / 0.7262 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.7003, allocations: 8 kB / 0.7262 GB, free: 11.13 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.692e-05/0.7004, allocations: 23.92 kB / 0.7263 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.599e-05/0.7004, allocations: 31.89 kB / 0.7263 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.7005, allocations: 8 kB / 0.7263 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.158e-05/0.7005, allocations: 4 kB / 0.7263 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.255e-05/0.7005, allocations: 19.92 kB / 0.7263 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.761e-05/0.7006, allocations: 35.86 kB / 0.7264 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.7007, allocations: 55.83 kB / 0.7264 GB, free: 10.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.7007, allocations: 0 / 0.7264 GB, free: 10.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.963e-06/0.7007, allocations: 0 / 0.7264 GB, free: 10.95 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.7007, allocations: 0 / 0.7264 GB, free: 10.95 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.0007922/0.7015, allocations: 381.2 kB / 0.7268 GB, free: 10.53 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.7016, allocations: 8.031 kB / 0.7268 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.7016, allocations: 16.83 kB / 0.7268 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.7018, allocations: 176.3 kB / 0.727 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.7018, allocations: 4.312 kB / 0.727 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.7019, allocations: 12.31 kB / 0.727 GB, free: 10.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.7021, allocations: 82.2 kB / 0.7271 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.7021, allocations: 192 / 0.7271 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.7021, allocations: 3.938 kB / 0.7271 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.7021, allocations: 4 kB / 0.7271 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.7023, allocations: 55.95 kB / 0.7271 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000624/0.703, allocations: 312.6 kB / 0.7274 GB, free: 9.777 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.7032, allocations: 82.48 kB / 0.7275 GB, free: 9.688 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.7033, allocations: 44.83 kB / 0.7275 GB, free: 9.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.7033, allocations: 4 kB / 0.7276 GB, free: 9.637 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.7036, allocations: 91.48 kB / 0.7276 GB, free: 9.535 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.7036, allocations: 0 / 0.7276 GB, free: 9.535 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0004866/0.7041, allocations: 169.5 kB / 0.7278 GB, free: 9.363 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.7041, allocations: 59.41 kB / 0.7279 GB, free: 9.293 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.918e-05/0.7042, allocations: 109.8 kB / 0.728 GB, free: 9.176 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.7043, allocations: 33.7 kB / 0.728 GB, free: 9.137 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.583e-05/0.7043, allocations: 80.38 kB / 0.7281 GB, free: 9.051 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.7044, allocations: 31.64 kB / 0.7281 GB, free: 9.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.7044, allocations: 29.83 kB / 0.7281 GB, free: 8.984 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7046, allocations: 322.8 kB / 0.7284 GB, free: 8.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.7047, allocations: 39.97 kB / 0.7285 GB, free: 8.621 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.7048, allocations: 59.41 kB / 0.7285 GB, free: 8.551 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.7051, allocations: 115.3 kB / 0.7286 GB, free: 8.426 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.7051, allocations: 0 / 0.7286 GB, free: 8.426 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003002/0.7054, allocations: 149.6 kB / 0.7288 GB, free: 8.273 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.7055, allocations: 4 kB / 0.7288 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.7055, allocations: 384 / 0.7288 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.7055, allocations: 8 kB / 0.7288 GB, free: 8.262 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.7056, allocations: 20.08 kB / 0.7288 GB, free: 8.242 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.7056, allocations: 7.938 kB / 0.7288 GB, free: 8.234 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.7057, allocations: 11.92 kB / 0.7288 GB, free: 8.223 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.7057, allocations: 8 kB / 0.7288 GB, free: 8.215 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 9.873e-05/0.7058, allocations: 129.7 kB / 0.729 GB, free: 8.078 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.7059, allocations: 7.906 kB / 0.729 GB, free: 8.07 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.7062, allocations: 141.9 kB / 0.7291 GB, free: 7.926 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.7062, allocations: 4 kB / 0.7291 GB, free: 7.922 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.7062, allocations: 0 / 0.7291 GB, free: 7.922 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.7062, allocations: 7.984 kB / 0.7291 GB, free: 7.914 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005007/0.7067, allocations: 406.4 kB / 0.7295 GB, free: 7.461 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.7068, allocations: 0 / 0.7295 GB, free: 7.461 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.7068, allocations: 11.98 kB / 0.7295 GB, free: 7.449 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.7068, allocations: 0 / 0.7295 GB, free: 7.449 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.7069, allocations: 4 kB / 0.7295 GB, free: 7.445 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.7069, allocations: 4 kB / 0.7295 GB, free: 7.441 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7069, allocations: 0 / 0.7295 GB, free: 7.441 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003668/0.7072, allocations: 239.3 kB / 0.7298 GB, free: 7.191 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.104e-05/0.7073, allocations: 89 kB / 0.7298 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.7074, allocations: 0 / 0.7298 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.7075, allocations: 15.98 kB / 0.7299 GB, free: 7.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.7075, allocations: 4 kB / 0.7299 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.7075, allocations: 15.86 kB / 0.7299 GB, free: 7.051 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.154e-05/0.7076, allocations: 83.28 kB / 0.73 GB, free: 6.969 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7076, allocations: 288 / 0.73 GB, free: 6.969 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002287/0.7078, allocations: 12 kB / 0.73 GB, free: 6.957 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.0001311/0.708, allocations: 109.8 kB / 0.7301 GB, free: 6.844 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00031/0.7083, allocations: 107.8 kB / 0.7302 GB, free: 6.738 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7083, allocations: 0 / 0.7302 GB, free: 6.738 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.7084, allocations: 47.91 kB / 0.7302 GB, free: 6.691 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.7087, allocations: 13.89 kB / 0.7302 GB, free: 6.684 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.7091, allocations: 165.7 kB / 0.7304 GB, free: 6.496 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.7094, allocations: 0.6884 MB / 0.7311 GB, free: 5.781 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.735e-05/0.7095, allocations: 12.38 kB / 0.7311 GB, free: 5.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.7095, allocations: 15.42 kB / 0.7311 GB, free: 5.754 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.7095, allocations: 3.938 kB / 0.7311 GB, free: 5.75 MB / 0.545 GB Notification: Performance of Templates: time 0.003316/0.7128, allocations: 0.865 MB / 0.7319 GB, free: 4.887 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)