Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.0012/0.0012, allocations: 99.94 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.001471/0.001472, allocations: 177.3 kB / 15.94 MB, free: 228 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.333/1.333, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.659/1.659, allocations: 292.5 MB / 0.5497 GB, free: 14.62 MB / 462.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.0005354/0.0005355, allocations: 13.25 kB / 0.6736 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2606, allocations: 116.3 MB / 0.7871 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0009845/0.2617, allocations: 409.5 kB / 0.7875 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.2631, allocations: 1.049 MB / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.414e-05/0.2632, allocations: 0 / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.2633, allocations: 3.938 kB / 0.7885 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.2633, allocations: 4 kB / 0.7885 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002701/0.2636, allocations: 35.89 kB / 0.7886 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.604e-05/0.2637, allocations: 43.89 kB / 0.7886 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.368e-05/0.2638, allocations: 11.98 kB / 0.7886 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.379e-05/0.2639, allocations: 23.92 kB / 0.7887 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.444e-05/0.264, allocations: 31.89 kB / 0.7887 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.264, allocations: 4 kB / 0.7887 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.746e-05/0.2641, allocations: 15.92 kB / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.2641, allocations: 15.92 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.2642, allocations: 33.7 kB / 0.7888 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.2643, allocations: 51.88 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2643, allocations: 4 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2643, allocations: 0 / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2643, allocations: 0 / 0.7888 GB, free: 10.23 MB / 0.6075 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.0005876/0.2649, allocations: 371.5 kB / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2649, allocations: 8.031 kB / 0.7892 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.265, allocations: 15.89 kB / 0.7892 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.2651, allocations: 174.9 kB / 0.7894 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.2652, allocations: 4 kB / 0.7894 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.2652, allocations: 7.938 kB / 0.7894 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.2654, allocations: 89.64 kB / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.2654, allocations: 0 / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.2654, allocations: 0 / 0.7894 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2655, allocations: 4 kB / 0.7895 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.2657, allocations: 63.95 kB / 0.7895 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.2662, allocations: 320.6 kB / 0.7898 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.2664, allocations: 82.55 kB / 0.7899 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.2664, allocations: 7.969 kB / 0.7899 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.2667, allocations: 91.56 kB / 0.79 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 3.897e-06/0.2667, allocations: 3.984 kB / 0.79 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004917/0.2672, allocations: 193.5 kB / 0.7902 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.2672, allocations: 55.34 kB / 0.7902 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.21e-05/0.2673, allocations: 109.8 kB / 0.7903 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.2673, allocations: 29.7 kB / 0.7904 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.2674, allocations: 88.36 kB / 0.7904 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.74e-05/0.2674, allocations: 23.66 kB / 0.7905 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.2674, allocations: 4 kB / 0.7905 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2676, allocations: 322.8 kB / 0.7908 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.2677, allocations: 47.97 kB / 0.7908 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.2678, allocations: 61.38 kB / 0.7909 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.268, allocations: 59.91 kB / 0.7909 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.268, allocations: 0 / 0.7909 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003135/0.2683, allocations: 157.6 kB / 0.7911 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2683, allocations: 4 kB / 0.7911 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2683, allocations: 0 / 0.7911 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2683, allocations: 4 kB / 0.7911 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.2685, allocations: 24.3 kB / 0.7911 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.2685, allocations: 0 / 0.7911 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.058e-05/0.2686, allocations: 20.17 kB / 0.7911 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.2686, allocations: 4 kB / 0.7911 GB, free: 7.598 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 9.141e-05/0.2687, allocations: 133.7 kB / 0.7913 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.437e-05/0.2687, allocations: 7.906 kB / 0.7913 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.2691, allocations: 153.9 kB / 0.7914 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2691, allocations: 4 kB / 0.7914 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2691, allocations: 4 kB / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2691, allocations: 0 / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004904/0.2696, allocations: 418.2 kB / 0.7918 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2696, allocations: 3.984 kB / 0.7918 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.726e-05/0.2697, allocations: 16 kB / 0.7919 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2697, allocations: 0 / 0.7919 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2697, allocations: 7.984 kB / 0.7919 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2697, allocations: 4 kB / 0.7919 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2697, allocations: 0 / 0.7919 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.2701, allocations: 243.4 kB / 0.7921 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.2701, allocations: 88.95 kB / 0.7922 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.2701, allocations: 7.984 kB / 0.7922 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.2702, allocations: 11.98 kB / 0.7922 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.2703, allocations: 4 kB / 0.7922 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2703, allocations: 8 kB / 0.7922 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.944e-05/0.2704, allocations: 91.2 kB / 0.7923 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2704, allocations: 0 / 0.7923 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002529/0.2706, allocations: 20 kB / 0.7923 GB, free: 6.289 MB / 0.6075 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.0001633/0.2708, allocations: 110.3 kB / 0.7924 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003023/0.2711, allocations: 119.8 kB / 0.7925 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2711, allocations: 0 / 0.7925 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.2713, allocations: 51.97 kB / 0.7926 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.2715, allocations: 4 kB / 0.7926 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004201/0.2719, allocations: 165.5 kB / 0.7928 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.2722, allocations: 0.6926 MB / 0.7934 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.696e-05/0.2722, allocations: 8.422 kB / 0.7934 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.026e-05/0.2722, allocations: 11.44 kB / 0.7934 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/0.2722, allocations: 0 / 0.7934 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of Templates: time 0.003206/0.2755, allocations: 0.8762 MB / 0.7943 GB, free: 4.199 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: