Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 105.4 kB / 15.7 MB, free: 24 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.002235/0.002234, allocations: 193.4 kB / 16.64 MB, free: 6.453 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.493/1.493, allocations: 205.1 MB / 222.5 MB, free: 4.598 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.739/1.739, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001463/0.001463, allocations: 66.12 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002105/0.2653, allocations: 0.7469 MB / 0.7844 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.2668, allocations: 1.173 MB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.459e-05/0.2668, allocations: 7.875 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.77e-05/0.2669, allocations: 7.984 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.857e-05/0.267, allocations: 11.88 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.2674, allocations: 138.9 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000168/0.2676, allocations: 123.8 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2677, allocations: 19.97 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.151e-05/0.2678, allocations: 47.84 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.535e-05/0.2679, allocations: 43.88 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.2679, allocations: 8 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.057e-05/0.268, allocations: 27.98 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.268, allocations: 11.92 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.062e-05/0.2681, allocations: 43.91 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.2683, allocations: 119.9 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2683, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2683, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.2683, allocations: 0 / 0.7861 GB, free: 10.73 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005494/0.2688, allocations: 405 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2689, allocations: 8.031 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.2689, allocations: 34.75 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.269, allocations: 8.938 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.2691, allocations: 180.2 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2691, allocations: 4.375 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.2691, allocations: 8.375 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.2693, allocations: 62.22 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.2694, allocations: 3.938 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.2694, allocations: 4 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2694, allocations: 0 / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.2696, allocations: 47.89 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004275/0.27, allocations: 336.5 kB / 0.7872 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.2702, allocations: 50.55 kB / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.23e-05/0.2703, allocations: 28.92 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.2703, allocations: 0 / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.2705, allocations: 91.34 kB / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.806e-06/0.2705, allocations: 0 / 0.7873 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004142/0.2709, allocations: 133.6 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.271, allocations: 51.41 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.042e-05/0.271, allocations: 125.7 kB / 0.7876 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.2711, allocations: 29.7 kB / 0.7876 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.292e-05/0.2711, allocations: 96.19 kB / 0.7877 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.2712, allocations: 15.81 kB / 0.7877 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.2712, allocations: 33.7 kB / 0.7878 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2713, allocations: 326.8 kB / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.2715, allocations: 43.97 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.2717, allocations: 87.27 kB / 0.7882 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.2719, allocations: 125 kB / 0.7883 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2719, allocations: 0 / 0.7883 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000396/0.2723, allocations: 199.2 kB / 0.7885 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.2724, allocations: 41.69 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2724, allocations: 4 kB / 0.7886 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.2724, allocations: 4 kB / 0.7886 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.8e-05/0.2725, allocations: 11.98 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.2725, allocations: 0 / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.2727, allocations: 36.02 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.2727, allocations: 12 kB / 0.7886 GB, free: 7.855 MB / 0.6075 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.552e-05/0.2728, allocations: 125.7 kB / 0.7887 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.2729, allocations: 7.906 kB / 0.7888 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002907/0.2732, allocations: 110 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2732, allocations: 0 / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2732, allocations: 0 / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2732, allocations: 11.94 kB / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.2736, allocations: 366.4 kB / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2736, allocations: 0 / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.2737, allocations: 7.984 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2737, allocations: 0 / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.2737, allocations: 4 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2737, allocations: 0 / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.2737, allocations: 4.5 kB / 0.7892 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.274, allocations: 215.3 kB / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-05/0.2741, allocations: 77.11 kB / 0.7895 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.2741, allocations: 7.984 kB / 0.7895 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.2742, allocations: 8 kB / 0.7895 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.2742, allocations: 11.86 kB / 0.7895 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.2743, allocations: 8 kB / 0.7895 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.478e-05/0.2743, allocations: 91.27 kB / 0.7896 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2743, allocations: 0 / 0.7896 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002504/0.2746, allocations: 16 kB / 0.7897 GB, free: 6.699 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: 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 (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.0005761/0.2751, allocations: 0.7436 MB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003473/0.2755, allocations: 164 kB / 0.7905 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2755, allocations: 0 / 0.7905 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.2756, allocations: 39.91 kB / 0.7906 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.2759, allocations: 22.33 kB / 0.7906 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.2777, allocations: 1.645 MB / 0.7922 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.278, allocations: 0.6908 MB / 0.7929 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.217e-05/0.278, allocations: 4 kB / 0.7929 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.2781, allocations: 15.44 kB / 0.7929 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2781, allocations: 0 / 0.7929 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.2961, allocations: 2.43 MB / 0.7953 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/8.031, allocations: 9.297 kB / 0.7953 GB, free: 0.8789 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)