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.0009853/0.0009854, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001165/0.001166, allocations: 168.7 kB / 15.95 MB, free: 204 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.835/1.835, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.635/1.635, allocations: 252 MB / 0.5102 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.0005151/0.0005152, allocations: 19.44 kB / 0.6243 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6866/0.6871, allocations: 106.4 MB / 0.7281 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001661/0.6889, allocations: 1.116 MB / 0.7292 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004657/0.6894, allocations: 228.3 kB / 0.7295 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.6894, allocations: 4 kB / 0.7295 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.6894, allocations: 3.938 kB / 0.7295 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.081e-05/0.6895, allocations: 4 kB / 0.7295 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.6897, allocations: 23.91 kB / 0.7295 GB, free: 10.17 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.048e-05/0.6898, allocations: 59.84 kB / 0.7295 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.756e-05/0.6899, allocations: 7.984 kB / 0.7296 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.278e-05/0.69, allocations: 27.91 kB / 0.7296 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.835e-05/0.69, allocations: 23.91 kB / 0.7296 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.6901, allocations: 4 kB / 0.7296 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.256e-05/0.6901, allocations: 4 kB / 0.7296 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.6901, allocations: 15.98 kB / 0.7296 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.6901, allocations: 37.64 kB / 0.7297 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.352e-05/0.6902, allocations: 43.89 kB / 0.7297 GB, free: 9.945 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.6902, allocations: 0 / 0.7297 GB, free: 9.945 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.824e-06/0.6902, allocations: 0 / 0.7297 GB, free: 9.945 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.6903, allocations: 0 / 0.7297 GB, free: 9.945 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.0005664/0.6908, allocations: 381.1 kB / 0.7301 GB, free: 9.527 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.6909, allocations: 8.031 kB / 0.7301 GB, free: 9.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.799e-05/0.6909, allocations: 4 kB / 0.7301 GB, free: 9.516 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.691, allocations: 170.9 kB / 0.7302 GB, free: 9.309 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.6911, allocations: 4 kB / 0.7302 GB, free: 9.305 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.6911, allocations: 11.94 kB / 0.7303 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.6913, allocations: 89.58 kB / 0.7303 GB, free: 9.199 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.6913, allocations: 0 / 0.7303 GB, free: 9.199 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.6914, allocations: 4 kB / 0.7303 GB, free: 9.195 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.6914, allocations: 4 kB / 0.7303 GB, free: 9.191 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.6916, allocations: 55.95 kB / 0.7304 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.6921, allocations: 316.7 kB / 0.7307 GB, free: 8.777 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.6924, allocations: 82.48 kB / 0.7308 GB, free: 8.688 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.6925, allocations: 52.83 kB / 0.7308 GB, free: 8.633 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.6925, allocations: 7.984 kB / 0.7308 GB, free: 8.625 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000279/0.6928, allocations: 91.36 kB / 0.7309 GB, free: 8.523 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.724e-06/0.6928, allocations: 3.938 kB / 0.7309 GB, free: 8.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006149/0.6935, allocations: 189.6 kB / 0.7311 GB, free: 8.328 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.6935, allocations: 59.36 kB / 0.7312 GB, free: 8.258 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.6937, allocations: 117.8 kB / 0.7313 GB, free: 8.133 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.6937, allocations: 33.64 kB / 0.7313 GB, free: 8.094 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.6938, allocations: 88.28 kB / 0.7314 GB, free: 8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.6938, allocations: 27.64 kB / 0.7314 GB, free: 7.973 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.6938, allocations: 4 kB / 0.7314 GB, free: 7.969 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.694, allocations: 322.8 kB / 0.7317 GB, free: 7.645 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.6941, allocations: 36.09 kB / 0.7318 GB, free: 7.609 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.6942, allocations: 82.42 kB / 0.7318 GB, free: 7.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.6944, allocations: 51.98 kB / 0.7319 GB, free: 7.469 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.6944, allocations: 0 / 0.7319 GB, free: 7.469 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002871/0.6947, allocations: 141.6 kB / 0.732 GB, free: 7.324 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.477e-05/0.6948, allocations: 4 kB / 0.732 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.6948, allocations: 12.03 kB / 0.732 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.6948, allocations: 0 / 0.732 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.6949, allocations: 23.98 kB / 0.7321 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.6949, allocations: 0 / 0.7321 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.695, allocations: 23.84 kB / 0.7321 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.695, allocations: 7.984 kB / 0.7321 GB, free: 7.254 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 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.6952, allocations: 121.7 kB / 0.7322 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.6952, allocations: 15.84 kB / 0.7322 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004353/0.6956, allocations: 153.9 kB / 0.7324 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.6956, allocations: 0 / 0.7324 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.6957, allocations: 0 / 0.7324 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.6957, allocations: 7.984 kB / 0.7324 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006206/0.6963, allocations: 422.8 kB / 0.7328 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.6963, allocations: 0 / 0.7328 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.45e-05/0.6964, allocations: 15.98 kB / 0.7328 GB, free: 6.461 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.6964, allocations: 4 kB / 0.7328 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.6964, allocations: 0 / 0.7328 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.6964, allocations: 0 / 0.7328 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6964, allocations: 7.953 kB / 0.7328 GB, free: 6.449 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.6968, allocations: 247.3 kB / 0.7331 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.6968, allocations: 81.11 kB / 0.7331 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.6969, allocations: 0 / 0.7331 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.697, allocations: 15.98 kB / 0.7331 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.697, allocations: 11.94 kB / 0.7332 GB, free: 6.066 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.697, allocations: 4 kB / 0.7332 GB, free: 6.062 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.773e-05/0.6971, allocations: 83.53 kB / 0.7332 GB, free: 5.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.6971, allocations: 4 kB / 0.7332 GB, free: 5.977 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002403/0.6974, allocations: 12 kB / 0.7333 GB, free: 5.965 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 (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.0001577/0.6975, allocations: 111.2 kB / 0.7334 GB, free: 5.848 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000291/0.6978, allocations: 107.9 kB / 0.7335 GB, free: 5.742 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6978, allocations: 4 kB / 0.7335 GB, free: 5.738 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.698, allocations: 51.91 kB / 0.7335 GB, free: 5.688 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.6982, allocations: 8 kB / 0.7335 GB, free: 5.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.6986, allocations: 173.8 kB / 0.7337 GB, free: 5.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.6991, allocations: 0.6887 MB / 0.7344 GB, free: 4.766 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.162e-05/0.6992, allocations: 4.438 kB / 0.7344 GB, free: 4.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.001e-05/0.6992, allocations: 11.44 kB / 0.7344 GB, free: 4.75 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.6992, allocations: 3.938 kB / 0.7344 GB, free: 4.746 MB / 0.545 GB Notification: Performance of Templates: time 0.003688/0.7029, allocations: 0.7503 MB / 0.7351 GB, free: 4 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: