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.TriggeredMovingMean.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.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",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.485/1.485, allocations: 252 MB / 267 MB, free: 10.96 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.0009731/0.0009731, allocations: 173.1 kB / 326.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.4 MB / 0.5777 GB, free: 20.47 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.0007277/0.0007277, allocations: 84.25 kB / 0.6822 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 10.22 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2502, allocations: 106.4 MB / 0.9003 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001719/0.252, allocations: 1.316 MB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006417/0.2526, allocations: 363.9 kB / 0.902 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-05/0.2527, allocations: 7.938 kB / 0.902 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.2528, allocations: 3.938 kB / 0.902 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.253, allocations: 35.77 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.2532, allocations: 63.86 kB / 0.9021 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.2533, allocations: 155.5 kB / 0.9022 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.2535, allocations: 29.47 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2536, allocations: 67.75 kB / 0.9023 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.2537, allocations: 79.72 kB / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.2538, allocations: 8 kB / 0.9024 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.378e-05/0.2538, allocations: 4 kB / 0.9024 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.156e-05/0.2539, allocations: 35.91 kB / 0.9024 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/0.2539, allocations: 53.52 kB / 0.9025 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.254, allocations: 127.9 kB / 0.9026 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2541, allocations: 0 / 0.9026 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.435e-06/0.2541, allocations: 0 / 0.9026 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.2541, allocations: 0 / 0.9026 GB, free: 61.81 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007989/0.2549, allocations: 463.2 kB / 0.903 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2549, allocations: 8.031 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.255, allocations: 46.55 kB / 0.9031 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.255, allocations: 15.81 kB / 0.9031 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.2552, allocations: 222.7 kB / 0.9033 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.2553, allocations: 12 kB / 0.9033 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.2553, allocations: 19.98 kB / 0.9034 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.2556, allocations: 181.5 kB / 0.9035 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2557, allocations: 0 / 0.9035 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.2557, allocations: 7.984 kB / 0.9035 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2557, allocations: 4 kB / 0.9035 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.2559, allocations: 103.9 kB / 0.9036 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005912/0.2565, allocations: 420.3 kB / 0.904 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.2568, allocations: 150.5 kB / 0.9042 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.257, allocations: 104.8 kB / 0.9043 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.257, allocations: 0 / 0.9043 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.2573, allocations: 202.6 kB / 0.9045 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 1.432e-06/0.2573, allocations: 0 / 0.9045 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0007786/0.2581, allocations: 442.8 kB / 0.9049 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.2582, allocations: 63.39 kB / 0.905 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2583, allocations: 148.6 kB / 0.9051 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.2584, allocations: 37.69 kB / 0.9051 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.2584, allocations: 96.61 kB / 0.9052 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.065e-05/0.2585, allocations: 75.11 kB / 0.9053 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.731e-05/0.2585, allocations: 8 kB / 0.9053 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.2586, allocations: 338.8 kB / 0.9056 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.2588, allocations: 108.3 kB / 0.9057 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.259, allocations: 167.3 kB / 0.9059 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.2592, allocations: 125.1 kB / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2592, allocations: 0 / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005558/0.2598, allocations: 347.2 kB / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2598, allocations: 8 kB / 0.9064 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2598, allocations: 0 / 0.9064 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.2599, allocations: 4 kB / 0.9064 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.2601, allocations: 55.91 kB / 0.9064 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.2601, allocations: 4 kB / 0.9064 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.2603, allocations: 51.66 kB / 0.9065 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.2603, allocations: 12.03 kB / 0.9065 GB, free: 57.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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 0.000156/0.2605, allocations: 165.8 kB / 0.9066 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.037e-05/0.2605, allocations: 19.8 kB / 0.9067 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.2606, allocations: 13.88 kB / 0.9067 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2606, allocations: 0 / 0.9067 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2606, allocations: 0 / 0.9067 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2606, allocations: 3.938 kB / 0.9067 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008891/0.2615, allocations: 0.725 MB / 0.9074 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2615, allocations: 4 kB / 0.9074 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/0.2616, allocations: 11.94 kB / 0.9074 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2616, allocations: 0 / 0.9074 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.2616, allocations: 15.97 kB / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2616, allocations: 4 kB / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2616, allocations: 4 kB / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000489/0.2621, allocations: 443.9 kB / 0.9078 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.2622, allocations: 96.91 kB / 0.9079 GB, free: 56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.2622, allocations: 19.98 kB / 0.9079 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.2624, allocations: 19.92 kB / 0.908 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.2625, allocations: 19.97 kB / 0.908 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.2625, allocations: 23.97 kB / 0.908 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.518e-05/0.2626, allocations: 105.1 kB / 0.9081 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2626, allocations: 0 / 0.9081 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002597/0.2628, allocations: 55.94 kB / 0.9082 GB, free: 55.77 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: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0008043/0.2637, allocations: 1.003 MB / 0.9091 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004264/0.2641, allocations: 268.1 kB / 0.9094 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2641, allocations: 4 kB / 0.9094 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2643, allocations: 119.9 kB / 0.9095 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.2647, allocations: 28.3 kB / 0.9095 GB, free: 54.32 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.2662, allocations: 1.131 MB / 0.9106 GB, free: 53.12 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.2664, allocations: 0.7206 MB / 0.9114 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.166e-05/0.2665, allocations: 21.95 kB / 0.9114 GB, free: 52.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.659e-05/0.2666, allocations: 51.41 kB / 0.9114 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2666, allocations: 0 / 0.9114 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01432/0.2809, allocations: 3.984 MB / 0.9153 GB, free: 48.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.2811, allocations: 217.4 kB / 0.9155 GB, free: 48.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.078, allocations: 0 / 0.9155 GB, free: 48.26 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)