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.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.74/1.74, allocations: 288.2 MB / 303.2 MB, free: 8.133 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.001072/0.001072, allocations: 175.4 kB / 371.8 MB, free: 10.29 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.73/1.73, allocations: 205.4 MB / 0.6305 GB, free: 10.01 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.001113/0.001113, allocations: 89.16 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004569/0.000457, allocations: 11.75 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2648, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001359/0.2662, allocations: 450 kB / 0.9799 GB, free: 27.15 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.268, allocations: 1.142 MB / 0.981 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.677e-05/0.2681, allocations: 0 / 0.981 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.2681, allocations: 3.938 kB / 0.981 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.481e-05/0.2682, allocations: 11.98 kB / 0.981 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.2688, allocations: 118.9 kB / 0.9812 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.989e-05/0.2689, allocations: 63.92 kB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.716e-05/0.269, allocations: 7.984 kB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.786e-05/0.2691, allocations: 43.89 kB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.28e-05/0.2692, allocations: 27.91 kB / 0.9813 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.2692, allocations: 8 kB / 0.9813 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.964e-05/0.2693, allocations: 19.98 kB / 0.9813 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.2693, allocations: 11.91 kB / 0.9813 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.922e-05/0.2693, allocations: 37.7 kB / 0.9814 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.2695, allocations: 80.11 kB / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2695, allocations: 0 / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2695, allocations: 0 / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.2695, allocations: 0 / 0.9814 GB, free: 25.57 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005418/0.27, allocations: 390.1 kB / 0.9818 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.2701, allocations: 16.02 kB / 0.9818 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.2701, allocations: 38.55 kB / 0.9819 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.2702, allocations: 11.91 kB / 0.9819 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.049e-05/0.2703, allocations: 174.9 kB / 0.982 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2703, allocations: 4 kB / 0.982 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.2703, allocations: 4 kB / 0.9821 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.2705, allocations: 73.64 kB / 0.9821 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.2706, allocations: 0 / 0.9821 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.2706, allocations: 7.984 kB / 0.9821 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2706, allocations: 4 kB / 0.9821 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.2708, allocations: 47.97 kB / 0.9822 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004612/0.2712, allocations: 332.5 kB / 0.9825 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.2714, allocations: 54.56 kB / 0.9826 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.2715, allocations: 8.078 kB / 0.9826 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.2717, allocations: 91.44 kB / 0.9826 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 3.096e-06/0.2717, allocations: 0 / 0.9826 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004648/0.2722, allocations: 161.4 kB / 0.9828 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.2723, allocations: 51.41 kB / 0.9828 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.869e-05/0.2724, allocations: 117.8 kB / 0.983 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.2724, allocations: 29.7 kB / 0.983 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.2725, allocations: 92.31 kB / 0.9831 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.2725, allocations: 19.7 kB / 0.9831 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.185e-05/0.2725, allocations: 4 kB / 0.9831 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.638e-05/0.2726, allocations: 314.8 kB / 0.9834 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.2727, allocations: 59.95 kB / 0.9835 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.2729, allocations: 79.33 kB / 0.9835 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.273, allocations: 89.67 kB / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.273, allocations: 4 kB / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003566/0.2734, allocations: 203.3 kB / 0.9838 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.2734, allocations: 37.7 kB / 0.9839 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.2735, allocations: 480 / 0.9839 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2735, allocations: 0 / 0.9839 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.652e-05/0.2736, allocations: 19.92 kB / 0.9839 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2736, allocations: 0 / 0.9839 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.2738, allocations: 57.92 kB / 0.9839 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.2738, allocations: 15.94 kB / 0.9839 GB, free: 22.74 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.203e-05/0.2739, allocations: 121.8 kB / 0.9841 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.274, allocations: 4 kB / 0.9841 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.2742, allocations: 122 kB / 0.9842 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2742, allocations: 4 kB / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2743, allocations: 0 / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2743, allocations: 0 / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003442/0.2746, allocations: 378.4 kB / 0.9845 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2746, allocations: 0 / 0.9845 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.646e-05/0.2747, allocations: 15.98 kB / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2747, allocations: 0 / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.2747, allocations: 0 / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2747, allocations: 0 / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2747, allocations: 7.922 kB / 0.9846 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.275, allocations: 215.4 kB / 0.9848 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.275, allocations: 85.02 kB / 0.9849 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.2751, allocations: 0 / 0.9849 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.2752, allocations: 19.98 kB / 0.9849 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2752, allocations: 4 kB / 0.9849 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.2752, allocations: 0 / 0.9849 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.964e-05/0.2753, allocations: 95.22 kB / 0.985 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2753, allocations: 0 / 0.985 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002571/0.2755, allocations: 20 kB / 0.985 GB, free: 21.57 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005763/0.2761, allocations: 0.7598 MB / 0.9857 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2765, allocations: 187.3 kB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2765, allocations: 0 / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2766, allocations: 35.98 kB / 0.9859 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.2768, allocations: 20.33 kB / 0.986 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.2777, allocations: 0.8308 MB / 0.9868 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.2779, allocations: 0.6887 MB / 0.9874 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.911e-05/0.278, allocations: 7.938 kB / 0.9875 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.544e-05/0.278, allocations: 19.42 kB / 0.9875 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of SimCode: time 2.5e-07/0.278, allocations: 4 kB / 0.9875 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01554/0.2936, allocations: 2.097 MB / 0.9895 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/0.2938, allocations: 196.7 kB / 0.9897 GB, free: 16.74 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.839, allocations: 3.938 kB / 0.9897 GB, free: 16.73 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)