Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 252 MB / 267.3 MB, free: 10.81 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 171.7 kB / 327 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 0.578 GB, free: 20.11 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000809/0.0008086, allocations: 89.73 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003361, allocations: 8.875 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2804, allocations: 106.3 MB / 0.9009 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001518/0.282, allocations: 1.168 MB / 0.9021 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004386/0.2825, allocations: 256.1 kB / 0.9023 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.2825, allocations: 4 kB / 0.9023 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.99e-05/0.2825, allocations: 11.86 kB / 0.9023 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.58e-05/0.2826, allocations: 3.938 kB / 0.9023 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000209/0.2828, allocations: 31.97 kB / 0.9024 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.678e-05/0.2829, allocations: 51.84 kB / 0.9024 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.283, allocations: 12 kB / 0.9024 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.628e-05/0.2831, allocations: 19.92 kB / 0.9024 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.2832, allocations: 23.91 kB / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.2832, allocations: 4 kB / 0.9025 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.2832, allocations: 4 kB / 0.9025 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.2833, allocations: 7.922 kB / 0.9025 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.665e-05/0.2833, allocations: 49.56 kB / 0.9025 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.84e-05/0.2834, allocations: 51.77 kB / 0.9026 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2834, allocations: 0 / 0.9026 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2834, allocations: 4 kB / 0.9026 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.2834, allocations: 0 / 0.9026 GB, free: 61.64 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005357/0.284, allocations: 371.7 kB / 0.9029 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.284, allocations: 8.031 kB / 0.9029 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.2841, allocations: 38.73 kB / 0.903 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.2841, allocations: 8.844 kB / 0.903 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.498e-05/0.2842, allocations: 172.3 kB / 0.9031 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2842, allocations: 384 / 0.9031 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2842, allocations: 8.375 kB / 0.9032 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.2844, allocations: 78.22 kB / 0.9032 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2845, allocations: 3.938 kB / 0.9032 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.2845, allocations: 3.984 kB / 0.9032 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.2845, allocations: 4 kB / 0.9032 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.2847, allocations: 63.83 kB / 0.9033 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004048/0.2851, allocations: 288.7 kB / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.2853, allocations: 62.55 kB / 0.9036 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.2854, allocations: 36.97 kB / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2854, allocations: 3.938 kB / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.2857, allocations: 99.42 kB / 0.9038 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2857, allocations: 0 / 0.9038 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003922/0.2861, allocations: 137.6 kB / 0.9039 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.2861, allocations: 55.34 kB / 0.904 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.95e-05/0.2862, allocations: 121.7 kB / 0.9041 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.2862, allocations: 25.7 kB / 0.9041 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.2863, allocations: 88.14 kB / 0.9042 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.2863, allocations: 23.72 kB / 0.9042 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.2863, allocations: 0 / 0.9042 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.2864, allocations: 326.8 kB / 0.9045 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.7e-05/0.2865, allocations: 31.97 kB / 0.9045 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.5e-05/0.2866, allocations: 50.55 kB / 0.9046 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.2868, allocations: 86.47 kB / 0.9047 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2868, allocations: 4 kB / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002331/0.287, allocations: 117.5 kB / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.287, allocations: 4 kB / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.287, allocations: 0 / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2871, allocations: 7.984 kB / 0.9048 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.745e-05/0.2872, allocations: 12 kB / 0.9048 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2872, allocations: 0 / 0.9048 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.694e-05/0.2873, allocations: 24 kB / 0.9048 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.2873, allocations: 4 kB / 0.9048 GB, free: 59.07 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 6.739e-05/0.2874, allocations: 121.7 kB / 0.905 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.2874, allocations: 3.906 kB / 0.905 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.2877, allocations: 122 kB / 0.9051 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2877, allocations: 0 / 0.9051 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.2877, allocations: 0 / 0.9051 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2877, allocations: 7.984 kB / 0.9051 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.2881, allocations: 386.5 kB / 0.9055 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2881, allocations: 0 / 0.9055 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/0.2882, allocations: 15.97 kB / 0.9055 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2882, allocations: 3.938 kB / 0.9055 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2882, allocations: 8 kB / 0.9055 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2882, allocations: 4 kB / 0.9055 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2882, allocations: 3.938 kB / 0.9055 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.2885, allocations: 208.1 kB / 0.9057 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.281e-05/0.2885, allocations: 85.11 kB / 0.9058 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.2886, allocations: 0 / 0.9058 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.2887, allocations: 15.98 kB / 0.9058 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.2887, allocations: 12.11 kB / 0.9058 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.2887, allocations: 3.984 kB / 0.9058 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.373e-05/0.2888, allocations: 95.28 kB / 0.9059 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2888, allocations: 0 / 0.9059 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002067/0.289, allocations: 19.94 kB / 0.9059 GB, free: 57.87 MB / 0.6042 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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.0004823/0.2895, allocations: 0.7436 MB / 0.9066 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.2897, allocations: 79.88 kB / 0.9067 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2897, allocations: 0 / 0.9067 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.2899, allocations: 47.98 kB / 0.9068 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.2901, allocations: 15.86 kB / 0.9068 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2914, allocations: 1.458 MB / 0.9082 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.2915, allocations: 0.6848 MB / 0.9089 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.332e-05/0.2916, allocations: 7.859 kB / 0.9089 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.2916, allocations: 19.44 kB / 0.9089 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.2916, allocations: 3.938 kB / 0.9089 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.3032, allocations: 1.608 MB / 0.9105 GB, free: 53.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/0.3035, allocations: 223.5 kB / 0.9107 GB, free: 52.97 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.028, allocations: 0 / 0.9107 GB, free: 52.97 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)