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.659/1.659, allocations: 288.4 MB / 303.3 MB, free: 8.152 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.001106/0.001106, allocations: 177.2 kB / 372 MB, free: 10.26 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.882/1.882, allocations: 205.4 MB / 0.6307 GB, free: 9.977 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.00113/0.00113, allocations: 90.34 kB / 0.744 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005954/0.0005955, allocations: 10.75 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2571, allocations: 115.3 MB / 0.9797 GB, free: 27.55 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0008832/0.2581, allocations: 442 kB / 0.9801 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2594, allocations: 1.173 MB / 0.9812 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.2595, allocations: 0 / 0.9812 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.07e-05/0.2595, allocations: 3.938 kB / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.631e-05/0.2596, allocations: 3.938 kB / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.2601, allocations: 127 kB / 0.9813 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.739e-05/0.2602, allocations: 91.8 kB / 0.9814 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.119e-05/0.2603, allocations: 12 kB / 0.9814 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.407e-05/0.2604, allocations: 43.89 kB / 0.9815 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.749e-05/0.2605, allocations: 35.89 kB / 0.9815 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.2605, allocations: 4 kB / 0.9815 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.355e-05/0.2606, allocations: 15.98 kB / 0.9815 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.693e-05/0.2606, allocations: 11.94 kB / 0.9816 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.087e-05/0.2606, allocations: 29.7 kB / 0.9816 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.2608, allocations: 80.09 kB / 0.9817 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2608, allocations: 4 kB / 0.9817 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.405e-06/0.2608, allocations: 0 / 0.9817 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5e-06/0.2608, allocations: 0 / 0.9817 GB, free: 25.47 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.0005177/0.2613, allocations: 396.8 kB / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.2614, allocations: 12.02 kB / 0.9821 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.2614, allocations: 30.56 kB / 0.9821 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.2615, allocations: 11.91 kB / 0.9821 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.569e-05/0.2616, allocations: 179 kB / 0.9823 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.2616, allocations: 4 kB / 0.9823 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.2616, allocations: 8 kB / 0.9823 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.2618, allocations: 73.64 kB / 0.9823 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2618, allocations: 0 / 0.9823 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.2618, allocations: 0 / 0.9823 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2618, allocations: 3.938 kB / 0.9823 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.262, allocations: 55.95 kB / 0.9824 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004097/0.2624, allocations: 332.5 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.2626, allocations: 58.55 kB / 0.9828 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.363e-05/0.2627, allocations: 28.94 kB / 0.9828 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.2627, allocations: 7.984 kB / 0.9828 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.2629, allocations: 87.38 kB / 0.9829 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.2629, allocations: 0 / 0.9829 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004228/0.2634, allocations: 161.5 kB / 0.983 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.2634, allocations: 51.41 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.81e-05/0.2635, allocations: 117.8 kB / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.2635, allocations: 29.7 kB / 0.9832 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.2636, allocations: 92.31 kB / 0.9833 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.2636, allocations: 15.72 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.2636, allocations: 8 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.843e-05/0.2637, allocations: 314.8 kB / 0.9836 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.2638, allocations: 55.95 kB / 0.9837 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.264, allocations: 87.33 kB / 0.9838 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.2641, allocations: 85.66 kB / 0.9839 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2641, allocations: 4 kB / 0.9839 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003623/0.2645, allocations: 203.2 kB / 0.9841 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.2646, allocations: 39.58 kB / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2646, allocations: 3.938 kB / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2646, allocations: 0 / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.974e-05/0.2647, allocations: 19.92 kB / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.2647, allocations: 0 / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.2649, allocations: 58.69 kB / 0.9842 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.265, allocations: 8 kB / 0.9842 GB, free: 22.61 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 7.491e-05/0.2651, allocations: 125.8 kB / 0.9843 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.2651, allocations: 8 kB / 0.9843 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.2654, allocations: 126.4 kB / 0.9844 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2654, allocations: 0 / 0.9844 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2654, allocations: 0 / 0.9844 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2654, allocations: 0 / 0.9844 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.2657, allocations: 370.4 kB / 0.9848 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2657, allocations: 3.938 kB / 0.9848 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.889e-05/0.2658, allocations: 15.98 kB / 0.9848 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2658, allocations: 0 / 0.9848 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.2658, allocations: 8 kB / 0.9848 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2658, allocations: 0 / 0.9848 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2658, allocations: 7.938 kB / 0.9848 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.2661, allocations: 219.4 kB / 0.985 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.2661, allocations: 81.02 kB / 0.9851 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.2662, allocations: 0 / 0.9851 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.464e-05/0.2662, allocations: 11.98 kB / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.2663, allocations: 8 kB / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.393e-06/0.2663, allocations: 3.953 kB / 0.9851 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.973e-05/0.2663, allocations: 91.27 kB / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.2663, allocations: 0 / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000224/0.2666, allocations: 24 kB / 0.9852 GB, free: 21.43 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.0004572/0.267, allocations: 0.7558 MB / 0.986 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003297/0.2674, allocations: 179.3 kB / 0.9862 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2674, allocations: 0 / 0.9862 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.2675, allocations: 48.09 kB / 0.9862 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.2678, allocations: 13.02 kB / 0.9862 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2688, allocations: 0.6512 MB / 0.9868 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.269, allocations: 0.6848 MB / 0.9875 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.191e-05/0.269, allocations: 8.406 kB / 0.9875 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/0.2691, allocations: 19.44 kB / 0.9875 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of SimCode: time 2.21e-07/0.2691, allocations: 0 / 0.9875 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.2819, allocations: 2.126 MB / 0.9896 GB, free: 17 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/0.2821, allocations: 204.5 kB / 0.9898 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/1.926, allocations: 0 / 0.9898 GB, free: 16.77 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)