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.001124/0.001124, allocations: 109.4 kB / 15.69 MB, free: 128 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.001329/0.00133, allocations: 187.2 kB / 16.62 MB, free: 6.582 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.666/1.666, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.872/1.872, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001445/0.001445, allocations: 75.56 kB / 0.6723 GB, free: 25.97 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 114.5 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002289/0.2655, allocations: 0.6853 MB / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.2671, allocations: 1.059 MB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.016e-05/0.2671, allocations: 3.938 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.472e-05/0.2672, allocations: 7.938 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.846e-05/0.2673, allocations: 7.922 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.2676, allocations: 51.81 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.2677, allocations: 59.91 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2679, allocations: 16 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.841e-05/0.268, allocations: 31.91 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.391e-05/0.2681, allocations: 35.83 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.2681, allocations: 11.94 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.2682, allocations: 19.98 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.2682, allocations: 15.98 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.314e-05/0.2682, allocations: 23.86 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.2684, allocations: 87.67 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2684, allocations: 0 / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2684, allocations: 4 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.2684, allocations: 0 / 0.7862 GB, free: 10.61 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.0006382/0.2691, allocations: 379.3 kB / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2691, allocations: 8.031 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.2692, allocations: 4.938 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.2693, allocations: 176.2 kB / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.2693, allocations: 384 / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.2694, allocations: 16.36 kB / 0.7868 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.2696, allocations: 86.09 kB / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.2696, allocations: 192 / 0.7868 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.2696, allocations: 3.938 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.2696, allocations: 0 / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.2698, allocations: 59.94 kB / 0.7869 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.2704, allocations: 296.9 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.2706, allocations: 94.41 kB / 0.7873 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2707, allocations: 44.83 kB / 0.7873 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2708, allocations: 0 / 0.7873 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.271, allocations: 87.38 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.271, allocations: 0 / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004805/0.2715, allocations: 173.6 kB / 0.7876 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2716, allocations: 59.77 kB / 0.7876 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.2717, allocations: 101.9 kB / 0.7877 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.2717, allocations: 37.69 kB / 0.7878 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.2717, allocations: 92.31 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.2718, allocations: 36.62 kB / 0.7879 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.634e-05/0.2718, allocations: 29.72 kB / 0.7879 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.272, allocations: 318.8 kB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2721, allocations: 35.97 kB / 0.7882 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2722, allocations: 62.55 kB / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.2725, allocations: 106.5 kB / 0.7884 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2725, allocations: 3.938 kB / 0.7884 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003021/0.2728, allocations: 137.5 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2728, allocations: 8.062 kB / 0.7885 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2728, allocations: 0 / 0.7885 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2728, allocations: 4 kB / 0.7886 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.273, allocations: 23.98 kB / 0.7886 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.273, allocations: 0 / 0.7886 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.169e-05/0.2731, allocations: 15.83 kB / 0.7886 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.2731, allocations: 4 kB / 0.7886 GB, free: 7.906 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 (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 8.901e-05/0.2732, allocations: 130.4 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.2732, allocations: 11.89 kB / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003372/0.2735, allocations: 142 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2736, allocations: 3.984 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.2736, allocations: 3.984 kB / 0.7889 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2736, allocations: 3.938 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005572/0.2741, allocations: 406.4 kB / 0.7893 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2742, allocations: 4 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.113e-05/0.2742, allocations: 11.98 kB / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2742, allocations: 0 / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.2743, allocations: 0 / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2743, allocations: 0 / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2743, allocations: 4 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.2746, allocations: 247.4 kB / 0.7895 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-05/0.2747, allocations: 81.05 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.2747, allocations: 4.25 kB / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.2748, allocations: 11.98 kB / 0.7896 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.2749, allocations: 11.98 kB / 0.7896 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2749, allocations: 7.938 kB / 0.7896 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.934e-05/0.275, allocations: 79.28 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.275, allocations: 0 / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002821/0.2753, allocations: 27.89 kB / 0.7897 GB, free: 6.633 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 (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.0001962/0.2755, allocations: 117.8 kB / 0.7898 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000348/0.2758, allocations: 91.88 kB / 0.7899 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2759, allocations: 0 / 0.7899 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.276, allocations: 47.97 kB / 0.79 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.2763, allocations: 16.11 kB / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.2768, allocations: 158.1 kB / 0.7901 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.2772, allocations: 0.6885 MB / 0.7908 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.605e-05/0.2772, allocations: 8.422 kB / 0.7908 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.2773, allocations: 11.44 kB / 0.7908 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2773, allocations: 0 / 0.7908 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of Templates: time 0.00385/0.2811, allocations: 1.031 MB / 0.7918 GB, free: 4.418 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (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)