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.001098/0.001098, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001151/0.001151, allocations: 196.6 kB / 16.14 MB, free: 6.711 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.805/1.805, allocations: 205.1 MB / 222 MB, free: 4.984 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.594/1.594, allocations: 251.6 MB / 0.5088 GB, free: 3.246 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.001332/0.001332, allocations: 67.91 kB / 0.6216 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6898/0.6912, allocations: 104.7 MB / 0.7238 GB, free: 13.28 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003589/0.6948, allocations: 1.459 MB / 0.7252 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006278/0.6955, allocations: 248 kB / 0.7255 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.765e-05/0.6956, allocations: 0 / 0.7255 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.475e-05/0.6957, allocations: 7.938 kB / 0.7255 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.031e-05/0.6957, allocations: 0 / 0.7255 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.696, allocations: 31.91 kB / 0.7255 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.6961, allocations: 59.91 kB / 0.7256 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.6962, allocations: 15.89 kB / 0.7256 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.145e-05/0.6963, allocations: 23.91 kB / 0.7256 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.587e-05/0.6964, allocations: 31.84 kB / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.6965, allocations: 7.938 kB / 0.7256 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.652e-05/0.6965, allocations: 4 kB / 0.7257 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.6965, allocations: 11.98 kB / 0.7257 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.76e-05/0.6966, allocations: 31.86 kB / 0.7257 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.6967, allocations: 59.83 kB / 0.7258 GB, free: 11.28 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6967, allocations: 3.938 kB / 0.7258 GB, free: 11.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6967, allocations: 0 / 0.7258 GB, free: 11.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.6967, allocations: 0 / 0.7258 GB, free: 11.27 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.0006914/0.6974, allocations: 377.5 kB / 0.7261 GB, free: 10.86 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6975, allocations: 8.031 kB / 0.7261 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.018e-05/0.6976, allocations: 12.84 kB / 0.7261 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.6977, allocations: 164.4 kB / 0.7263 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.6978, allocations: 8.375 kB / 0.7263 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.6978, allocations: 4.375 kB / 0.7263 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.698, allocations: 86.14 kB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.698, allocations: 4.125 kB / 0.7264 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.6981, allocations: 3.938 kB / 0.7264 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.6981, allocations: 0 / 0.7264 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002311/0.6983, allocations: 59.95 kB / 0.7264 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006379/0.699, allocations: 308.7 kB / 0.7267 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.6992, allocations: 86.64 kB / 0.7268 GB, free: 10.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.6993, allocations: 52.77 kB / 0.7269 GB, free: 9.969 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.6994, allocations: 0 / 0.7269 GB, free: 9.969 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.6997, allocations: 83.48 kB / 0.727 GB, free: 9.875 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.6997, allocations: 3.938 kB / 0.727 GB, free: 9.871 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0005037/0.7002, allocations: 173.5 kB / 0.7271 GB, free: 9.695 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.7002, allocations: 63.39 kB / 0.7272 GB, free: 9.621 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.7003, allocations: 109.8 kB / 0.7273 GB, free: 9.504 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.7004, allocations: 33.69 kB / 0.7273 GB, free: 9.465 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.7004, allocations: 84.38 kB / 0.7274 GB, free: 9.375 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.7005, allocations: 23.66 kB / 0.7274 GB, free: 9.352 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.7006, allocations: 41.7 kB / 0.7275 GB, free: 9.305 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.7007, allocations: 314.8 kB / 0.7278 GB, free: 8.988 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.7008, allocations: 43.91 kB / 0.7278 GB, free: 8.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.701, allocations: 66.64 kB / 0.7279 GB, free: 8.871 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.7012, allocations: 111.3 kB / 0.728 GB, free: 8.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7012, allocations: 0 / 0.728 GB, free: 8.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003776/0.7016, allocations: 141.4 kB / 0.7281 GB, free: 8.605 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.7017, allocations: 8 kB / 0.7281 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.7017, allocations: 0 / 0.7281 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.7017, allocations: 0 / 0.7281 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.7018, allocations: 27.92 kB / 0.7281 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.7019, allocations: 8.094 kB / 0.7282 GB, free: 8.562 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.338e-05/0.7019, allocations: 7.984 kB / 0.7282 GB, free: 8.555 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.702, allocations: 4 kB / 0.7282 GB, free: 8.551 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.0001144/0.7021, allocations: 129.7 kB / 0.7283 GB, free: 8.414 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.7021, allocations: 3.906 kB / 0.7283 GB, free: 8.41 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003517/0.7025, allocations: 145.9 kB / 0.7284 GB, free: 8.262 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7025, allocations: 4 kB / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.7025, allocations: 256 / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7025, allocations: 0 / 0.7284 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000573/0.7031, allocations: 422.7 kB / 0.7288 GB, free: 7.789 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.7031, allocations: 0 / 0.7288 GB, free: 7.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.278e-05/0.7032, allocations: 15.92 kB / 0.7289 GB, free: 7.773 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.7032, allocations: 0 / 0.7289 GB, free: 7.773 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.7032, allocations: 7.984 kB / 0.7289 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.7032, allocations: 0 / 0.7289 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.7032, allocations: 0 / 0.7289 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.7036, allocations: 235.4 kB / 0.7291 GB, free: 7.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.7036, allocations: 81.02 kB / 0.7292 GB, free: 7.422 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.7037, allocations: 7.984 kB / 0.7292 GB, free: 7.414 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.7038, allocations: 8 kB / 0.7292 GB, free: 7.406 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.7038, allocations: 7.984 kB / 0.7292 GB, free: 7.398 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.7038, allocations: 11.94 kB / 0.7292 GB, free: 7.387 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.029e-05/0.7039, allocations: 83.27 kB / 0.7293 GB, free: 7.305 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7039, allocations: 0 / 0.7293 GB, free: 7.305 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003387/0.7042, allocations: 16 kB / 0.7293 GB, free: 7.289 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.000201/0.7045, allocations: 99.25 kB / 0.7294 GB, free: 7.184 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004329/0.7049, allocations: 107.8 kB / 0.7295 GB, free: 7.078 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7049, allocations: 0 / 0.7295 GB, free: 7.078 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.7051, allocations: 47.97 kB / 0.7295 GB, free: 7.031 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.7054, allocations: 7.984 kB / 0.7295 GB, free: 7.023 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006335/0.7061, allocations: 172.2 kB / 0.7297 GB, free: 6.828 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/0.7068, allocations: 0.689 MB / 0.7304 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.263e-05/0.7068, allocations: 8.438 kB / 0.7304 GB, free: 6.105 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.7069, allocations: 11.44 kB / 0.7304 GB, free: 6.094 MB / 0.545 GB Notification: Performance of SimCode: time 7.21e-07/0.7069, allocations: 0 / 0.7304 GB, free: 6.094 MB / 0.545 GB Notification: Performance of Templates: time 0.003852/0.7108, allocations: 0.7852 MB / 0.7312 GB, free: 5.312 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)