Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.664/1.664, allocations: 288.4 MB / 303.3 MB, free: 8.031 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009714/0.0009715, allocations: 190.9 kB / 372 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.725/1.725, allocations: 205.4 MB / 0.6307 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007985/0.0007988, allocations: 94.83 kB / 0.744 GB, free: 5.969 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004125/0.0004126, allocations: 10.69 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2672, allocations: 115.3 MB / 0.9797 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001044/0.2683, allocations: 402 kB / 0.98 GB, free: 27.2 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2697, allocations: 1.048 MB / 0.9811 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.514e-05/0.2697, allocations: 0 / 0.9811 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.705e-05/0.2698, allocations: 0 / 0.9811 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.203e-05/0.2698, allocations: 11.92 kB / 0.9811 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.2701, allocations: 35.91 kB / 0.9811 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.694e-05/0.2702, allocations: 63.83 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.007e-05/0.2703, allocations: 7.984 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.501e-05/0.2703, allocations: 23.92 kB / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.104e-05/0.2704, allocations: 31.89 kB / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.2704, allocations: 4 kB / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.011e-05/0.2705, allocations: 15.98 kB / 0.9812 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.2705, allocations: 11.98 kB / 0.9813 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.2706, allocations: 37.64 kB / 0.9813 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.2707, allocations: 55.88 kB / 0.9813 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2707, allocations: 0 / 0.9813 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.585e-06/0.2707, allocations: 0 / 0.9813 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2707, allocations: 0 / 0.9813 GB, free: 25.83 MB / 0.6198 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.0006534/0.2714, allocations: 377.1 kB / 0.9817 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.2714, allocations: 12.02 kB / 0.9817 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.394e-05/0.2715, allocations: 42.55 kB / 0.9818 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.905e-05/0.2715, allocations: 15.84 kB / 0.9818 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.2716, allocations: 167 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.2717, allocations: 7.938 kB / 0.9819 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.2717, allocations: 8 kB / 0.9819 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.2719, allocations: 89.64 kB / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.272, allocations: 0 / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.272, allocations: 0 / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.272, allocations: 0 / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.2722, allocations: 63.95 kB / 0.9821 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.2727, allocations: 312.7 kB / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.2729, allocations: 94.45 kB / 0.9825 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.273, allocations: 48.84 kB / 0.9825 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.273, allocations: 3.984 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.2733, allocations: 95.5 kB / 0.9826 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.2733, allocations: 3.938 kB / 0.9826 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004694/0.2738, allocations: 189.5 kB / 0.9828 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.2738, allocations: 59.39 kB / 0.9829 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.771e-05/0.2739, allocations: 109.8 kB / 0.983 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.2739, allocations: 33.7 kB / 0.983 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.424e-05/0.274, allocations: 92.47 kB / 0.9831 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.274, allocations: 27.59 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.274, allocations: 4 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.575e-05/0.2741, allocations: 314.8 kB / 0.9834 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.2742, allocations: 47.97 kB / 0.9835 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2743, allocations: 62.56 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.2745, allocations: 47.98 kB / 0.9836 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2745, allocations: 7.984 kB / 0.9836 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002888/0.2748, allocations: 145.5 kB / 0.9837 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2748, allocations: 4 kB / 0.9837 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2748, allocations: 4 kB / 0.9837 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2748, allocations: 4.062 kB / 0.9837 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.275, allocations: 23.92 kB / 0.9838 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.275, allocations: 7.938 kB / 0.9838 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.532e-05/0.2751, allocations: 23.83 kB / 0.9838 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.2751, allocations: 7.953 kB / 0.9838 GB, free: 23.09 MB / 0.6198 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 8.841e-05/0.2752, allocations: 117.8 kB / 0.9839 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.2752, allocations: 4 kB / 0.9839 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.2755, allocations: 153.9 kB / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2755, allocations: 0 / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2756, allocations: 0 / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2756, allocations: 0 / 0.9841 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004278/0.276, allocations: 434.7 kB / 0.9845 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.276, allocations: 0 / 0.9845 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.615e-05/0.2761, allocations: 12.23 kB / 0.9845 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2761, allocations: 4 kB / 0.9845 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2761, allocations: 15.98 kB / 0.9845 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2761, allocations: 0 / 0.9845 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2761, allocations: 0 / 0.9845 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.2764, allocations: 247.4 kB / 0.9847 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.664e-05/0.2765, allocations: 84.95 kB / 0.9848 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.2765, allocations: 11.98 kB / 0.9848 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2766, allocations: 8 kB / 0.9848 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/0.2767, allocations: 7.984 kB / 0.9848 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.2767, allocations: 0 / 0.9848 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.072e-05/0.2767, allocations: 91.22 kB / 0.9849 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2767, allocations: 0 / 0.9849 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002218/0.277, allocations: 24 kB / 0.985 GB, free: 21.79 MB / 0.6198 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.000591/0.2776, allocations: 0.7802 MB / 0.9857 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003024/0.2779, allocations: 111.8 kB / 0.9858 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2779, allocations: 0 / 0.9858 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.278, allocations: 52.38 kB / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.2783, allocations: 16.11 kB / 0.9859 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.2792, allocations: 0.5785 MB / 0.9865 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.2794, allocations: 0.6848 MB / 0.9871 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.2794, allocations: 12.42 kB / 0.9871 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.2795, allocations: 15.44 kB / 0.9871 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2795, allocations: 0 / 0.9871 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01203/0.2915, allocations: 1.789 MB / 0.9889 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/0.2917, allocations: 199.4 kB / 0.9891 GB, free: 17.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/1.981, allocations: 0 / 0.9891 GB, free: 17.6 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)