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.001595/0.001595, 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.001792/0.001792, allocations: 186.3 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.652/1.652, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.763/1.763, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001477/0.001477, allocations: 69.41 kB / 0.6718 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3137, 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.002368/0.3162, allocations: 0.7399 MB / 0.7844 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001829/0.318, allocations: 1.185 MB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.1e-05/0.3181, allocations: 4 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.3182, allocations: 7.922 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.155e-05/0.3182, allocations: 3.938 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.3188, allocations: 146.5 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.319, allocations: 123.8 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.3191, allocations: 15.98 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.491e-05/0.3192, allocations: 43.95 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.704e-05/0.3193, allocations: 43.83 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.3193, allocations: 12 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.3194, allocations: 27.97 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.447e-05/0.3195, allocations: 11.98 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.941e-05/0.3195, allocations: 43.84 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.3197, allocations: 119.9 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3197, allocations: 3.938 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3197, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.3198, 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.0006208/0.3204, allocations: 405 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3204, allocations: 8.031 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.3205, allocations: 38.69 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.3205, allocations: 12.94 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.3207, allocations: 168.3 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3207, allocations: 8.359 kB / 0.7867 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.3207, allocations: 8.375 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.3209, allocations: 62.22 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.321, allocations: 3.938 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.321, allocations: 4 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.321, allocations: 3.938 kB / 0.7868 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.3212, allocations: 47.95 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.3217, allocations: 324.6 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.3219, allocations: 50.55 kB / 0.7872 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.563e-05/0.322, allocations: 32.86 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.322, allocations: 4 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.3223, allocations: 87.42 kB / 0.7873 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3223, allocations: 0 / 0.7873 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004325/0.3227, allocations: 129.9 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3228, allocations: 59.41 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.3229, allocations: 117.7 kB / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.3229, allocations: 33.64 kB / 0.7876 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.511e-05/0.323, allocations: 92.12 kB / 0.7877 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.323, allocations: 19.8 kB / 0.7877 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/0.3231, allocations: 33.7 kB / 0.7878 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3232, allocations: 326.8 kB / 0.7881 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3234, allocations: 47.97 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.3236, allocations: 75.39 kB / 0.7882 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3238, allocations: 129.5 kB / 0.7883 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3238, allocations: 4 kB / 0.7883 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003993/0.3243, allocations: 195.2 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/0.3243, allocations: 41.69 kB / 0.7886 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3243, allocations: 0 / 0.7886 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3243, allocations: 7.938 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.73e-05/0.3245, allocations: 15.92 kB / 0.7886 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3245, allocations: 4.062 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.3247, allocations: 36.02 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.3247, 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 0.0001102/0.3248, allocations: 121.7 kB / 0.7887 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.3248, allocations: 7.906 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002982/0.3251, allocations: 113.9 kB / 0.7889 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3252, allocations: 4 kB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3252, allocations: 4 kB / 0.7889 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3252, allocations: 0 / 0.7889 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004906/0.3257, allocations: 362.5 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3257, allocations: 0 / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-05/0.3258, allocations: 11.92 kB / 0.7892 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.3258, allocations: 4 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3258, allocations: 0 / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3258, allocations: 4 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3258, allocations: 3.938 kB / 0.7892 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.3261, allocations: 203.5 kB / 0.7894 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.3262, allocations: 77.11 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.3262, allocations: 7.984 kB / 0.7895 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.3263, allocations: 15.94 kB / 0.7895 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.3264, allocations: 7.922 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3264, allocations: 8 kB / 0.7895 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.995e-05/0.3265, allocations: 91.27 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3265, allocations: 0 / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002606/0.3267, allocations: 20 kB / 0.7896 GB, free: 6.703 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.0007216/0.3275, allocations: 0.7477 MB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004038/0.3279, allocations: 163.3 kB / 0.7905 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3279, allocations: 4 kB / 0.7905 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.328, allocations: 35.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.0003215/0.3283, allocations: 24.98 kB / 0.7906 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.3305, allocations: 1.63 MB / 0.7922 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.3308, allocations: 0.6885 MB / 0.7929 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.815e-05/0.3308, allocations: 4 kB / 0.7929 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.3309, allocations: 15.44 kB / 0.7929 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.3309, allocations: 0 / 0.7929 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.35, allocations: 2.432 MB / 0.7952 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.74, allocations: 13.86 kB / 0.7953 GB, free: 0.8906 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --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)