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.00115/0.00115, allocations: 99 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.001151/0.001151, allocations: 177.3 kB / 15.94 MB, free: 220 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.829/1.829, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.671/1.671, allocations: 251.9 MB / 0.51 GB, free: 4.883 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.0005434/0.0005434, allocations: 19.98 kB / 0.6241 GB, free: 1.18 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.616/0.6166, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001861/0.6185, allocations: 1.1 MB / 0.7291 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000503/0.619, allocations: 236.2 kB / 0.7293 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.015e-05/0.6191, allocations: 0 / 0.7293 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.946e-05/0.6191, allocations: 0 / 0.7293 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.014e-05/0.6192, allocations: 12 kB / 0.7293 GB, free: 10.1 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.6194, allocations: 27.89 kB / 0.7293 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.06e-05/0.6195, allocations: 31.97 kB / 0.7294 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.6196, allocations: 11.97 kB / 0.7294 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.622e-05/0.6197, allocations: 23.92 kB / 0.7294 GB, free: 10 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.274e-05/0.6198, allocations: 23.91 kB / 0.7294 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.6198, allocations: 4 kB / 0.7294 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.676e-05/0.6198, allocations: 4 kB / 0.7294 GB, free: 9.973 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.6199, allocations: 19.86 kB / 0.7294 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.61e-05/0.6199, allocations: 41.69 kB / 0.7295 GB, free: 9.906 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.767e-05/0.62, allocations: 39.91 kB / 0.7295 GB, free: 9.867 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.62, allocations: 0 / 0.7295 GB, free: 9.867 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.62, allocations: 0 / 0.7295 GB, free: 9.867 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.62, allocations: 0 / 0.7295 GB, free: 9.867 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.0006034/0.6206, allocations: 377.1 kB / 0.7299 GB, free: 9.453 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.6207, allocations: 8.031 kB / 0.7299 GB, free: 9.445 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.6207, allocations: 11.92 kB / 0.7299 GB, free: 9.434 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.6209, allocations: 174.9 kB / 0.7301 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.6209, allocations: 4 kB / 0.7301 GB, free: 9.219 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.6209, allocations: 4 kB / 0.7301 GB, free: 9.215 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.6212, allocations: 85.64 kB / 0.7302 GB, free: 9.125 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.6212, allocations: 4 kB / 0.7302 GB, free: 9.121 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.6212, allocations: 4 kB / 0.7302 GB, free: 9.117 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.6212, allocations: 0 / 0.7302 GB, free: 9.117 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002305/0.6215, allocations: 59.95 kB / 0.7302 GB, free: 9.059 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00064/0.6221, allocations: 324.7 kB / 0.7305 GB, free: 8.691 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.6223, allocations: 82.66 kB / 0.7306 GB, free: 8.602 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.6224, allocations: 3.938 kB / 0.7306 GB, free: 8.598 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.6227, allocations: 99.48 kB / 0.7307 GB, free: 8.488 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.6227, allocations: 0 / 0.7307 GB, free: 8.488 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.00057/0.6233, allocations: 193.5 kB / 0.7309 GB, free: 8.293 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.6233, allocations: 51.41 kB / 0.7309 GB, free: 8.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.6235, allocations: 109.8 kB / 0.731 GB, free: 8.113 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.6235, allocations: 33.7 kB / 0.7311 GB, free: 8.074 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.6236, allocations: 88.28 kB / 0.7312 GB, free: 7.98 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.6236, allocations: 27.64 kB / 0.7312 GB, free: 7.953 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.6237, allocations: 4 kB / 0.7312 GB, free: 7.949 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.6238, allocations: 322.8 kB / 0.7315 GB, free: 7.625 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.624, allocations: 35.98 kB / 0.7315 GB, free: 7.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.6241, allocations: 75.39 kB / 0.7316 GB, free: 7.504 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.6243, allocations: 43.98 kB / 0.7316 GB, free: 7.461 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6243, allocations: 0 / 0.7316 GB, free: 7.461 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003335/0.6246, allocations: 153.5 kB / 0.7318 GB, free: 7.305 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.6247, allocations: 8.375 kB / 0.7318 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.6247, allocations: 0 / 0.7318 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.6247, allocations: 0 / 0.7318 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.6249, allocations: 27.98 kB / 0.7318 GB, free: 7.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.6249, allocations: 7.969 kB / 0.7318 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.625, allocations: 23.84 kB / 0.7319 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.625, allocations: 4 kB / 0.7319 GB, free: 7.234 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.0001696/0.6252, allocations: 129.8 kB / 0.732 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.6252, allocations: 3.906 kB / 0.732 GB, free: 7.094 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004079/0.6256, allocations: 157.9 kB / 0.7321 GB, free: 6.934 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.6256, allocations: 4 kB / 0.7321 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6256, allocations: 256 / 0.7321 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.6256, allocations: 3.984 kB / 0.7321 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006418/0.6263, allocations: 422.4 kB / 0.7325 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6263, allocations: 0 / 0.7325 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.829e-05/0.6264, allocations: 15.98 kB / 0.7326 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.6264, allocations: 0 / 0.7326 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.6264, allocations: 0 / 0.7326 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.6264, allocations: 7.938 kB / 0.7326 GB, free: 6.434 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.6264, allocations: 3.953 kB / 0.7326 GB, free: 6.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004249/0.6269, allocations: 243.4 kB / 0.7328 GB, free: 6.176 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.894e-05/0.6269, allocations: 89.03 kB / 0.7329 GB, free: 6.07 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.627, allocations: 0 / 0.7329 GB, free: 6.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.6271, allocations: 15.98 kB / 0.7329 GB, free: 6.055 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.6272, allocations: 7.984 kB / 0.7329 GB, free: 6.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.6272, allocations: 11.95 kB / 0.7329 GB, free: 6.035 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.225e-05/0.6272, allocations: 79.56 kB / 0.733 GB, free: 5.957 MB / 0.545 GB Notification: Performance of sort global known variables: time 4e-07/0.6272, allocations: 0 / 0.733 GB, free: 5.957 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002686/0.6275, allocations: 16 kB / 0.733 GB, free: 5.941 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.0001995/0.6277, allocations: 109.4 kB / 0.7331 GB, free: 5.828 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003043/0.628, allocations: 115.8 kB / 0.7332 GB, free: 5.715 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.628, allocations: 0 / 0.7332 GB, free: 5.715 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.6282, allocations: 56.11 kB / 0.7333 GB, free: 5.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.6284, allocations: 7.984 kB / 0.7333 GB, free: 5.652 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003663/0.6288, allocations: 169.2 kB / 0.7335 GB, free: 5.457 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.6291, allocations: 0.6887 MB / 0.7341 GB, free: 4.742 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.323e-05/0.6291, allocations: 12.42 kB / 0.7341 GB, free: 4.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.935e-05/0.6291, allocations: 11.44 kB / 0.7341 GB, free: 4.719 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.6291, allocations: 0 / 0.7341 GB, free: 4.719 MB / 0.545 GB Notification: Performance of Templates: time 0.003619/0.6328, allocations: 0.7455 MB / 0.7349 GB, free: 3.984 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: