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.TriggeredMovingMean.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.TriggeredMovingMean,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.636/1.636, allocations: 288.4 MB / 303.3 MB, free: 8.125 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.001009/0.001009, allocations: 175 kB / 372 MB, free: 10.29 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.872/1.872, allocations: 205.4 MB / 0.6307 GB, free: 10.01 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.0007903/0.0007903, allocations: 92.94 kB / 0.7441 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004124, allocations: 11.44 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2529, allocations: 115.3 MB / 0.9797 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001023/0.254, allocations: 0.568 MB / 0.9802 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.2555, allocations: 1.278 MB / 0.9815 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.2555, allocations: 0 / 0.9815 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.2557, allocations: 23.86 kB / 0.9815 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.2558, allocations: 19.84 kB / 0.9815 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.2565, allocations: 233.1 kB / 0.9817 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002006/0.2567, allocations: 227.4 kB / 0.9819 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.2568, allocations: 28.89 kB / 0.982 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.257, allocations: 115.7 kB / 0.9821 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.2572, allocations: 103.7 kB / 0.9822 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.204e-05/0.2572, allocations: 12 kB / 0.9822 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.283e-05/0.2573, allocations: 23.98 kB / 0.9822 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.2574, allocations: 31.91 kB / 0.9822 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.326e-05/0.2575, allocations: 53.64 kB / 0.9823 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.2577, allocations: 187.8 kB / 0.9825 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2577, allocations: 0 / 0.9825 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.545e-06/0.2577, allocations: 0 / 0.9825 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.2577, allocations: 4 kB / 0.9825 GB, free: 24.67 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008008/0.2585, allocations: 494.6 kB / 0.983 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.2586, allocations: 12.02 kB / 0.983 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.996e-05/0.2586, allocations: 42.55 kB / 0.983 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.2587, allocations: 23.75 kB / 0.983 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.2589, allocations: 244.6 kB / 0.9833 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.259, allocations: 11.98 kB / 0.9833 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.259, allocations: 16 kB / 0.9833 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.2594, allocations: 196 kB / 0.9835 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.2594, allocations: 4 kB / 0.9835 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.2594, allocations: 3.938 kB / 0.9835 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.2595, allocations: 4 kB / 0.9835 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.2597, allocations: 100.2 kB / 0.9836 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.2603, allocations: 472.7 kB / 0.984 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.2605, allocations: 138.6 kB / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.2607, allocations: 97.75 kB / 0.9843 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.2607, allocations: 0 / 0.9843 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.261, allocations: 203.9 kB / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.261, allocations: 0 / 0.9845 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0007697/0.2618, allocations: 468.8 kB / 0.9849 GB, free: 22 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.2618, allocations: 63.39 kB / 0.985 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.798e-05/0.262, allocations: 143.2 kB / 0.9851 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.262, allocations: 37.7 kB / 0.9851 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.186e-05/0.2621, allocations: 100.7 kB / 0.9852 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.2621, allocations: 71.17 kB / 0.9853 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.2622, allocations: 8 kB / 0.9853 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.622e-05/0.2623, allocations: 338.8 kB / 0.9856 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.2625, allocations: 144.7 kB / 0.9858 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.2628, allocations: 213.1 kB / 0.986 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.2631, allocations: 216.4 kB / 0.9862 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2631, allocations: 0 / 0.9862 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007729/0.2639, allocations: 0.4937 MB / 0.9867 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.2639, allocations: 67.39 kB / 0.9867 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.264, allocations: 8.125 kB / 0.9867 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.264, allocations: 4 kB / 0.9867 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.2642, allocations: 51.91 kB / 0.9868 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.2643, allocations: 11.89 kB / 0.9868 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.2647, allocations: 95.67 kB / 0.9869 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.2647, allocations: 23.98 kB / 0.9869 GB, free: 19.83 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001725/0.2649, allocations: 161.7 kB / 0.9871 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.265, allocations: 23.89 kB / 0.9871 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.265, allocations: 13.88 kB / 0.9871 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.265, allocations: 4 kB / 0.9871 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.265, allocations: 0 / 0.9871 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.265, allocations: 3.953 kB / 0.9871 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007214/0.2658, allocations: 0.6662 MB / 0.9878 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2658, allocations: 0 / 0.9878 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.346e-05/0.2658, allocations: 19.86 kB / 0.9878 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2658, allocations: 4 kB / 0.9878 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.2659, allocations: 7.984 kB / 0.9878 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2659, allocations: 7.938 kB / 0.9878 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2659, allocations: 0 / 0.9878 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.2664, allocations: 459.1 kB / 0.9882 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.32e-05/0.2665, allocations: 88.92 kB / 0.9883 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.2665, allocations: 15.98 kB / 0.9883 GB, free: 18.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.2666, allocations: 7.984 kB / 0.9883 GB, free: 18.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.777e-05/0.2667, allocations: 19.94 kB / 0.9884 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.2667, allocations: 23.92 kB / 0.9884 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.956e-05/0.2668, allocations: 105.6 kB / 0.9885 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2668, allocations: 0 / 0.9885 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003127/0.2671, allocations: 68 kB / 0.9885 GB, free: 18.05 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * 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.0007641/0.2679, allocations: 1.023 MB / 0.9895 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006095/0.2685, allocations: 450.9 kB / 0.99 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2685, allocations: 0 / 0.99 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.2687, allocations: 128.5 kB / 0.9901 GB, free: 16.42 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.2691, allocations: 31.92 kB / 0.9901 GB, free: 16.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.2709, allocations: 1.303 MB / 0.9914 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.2711, allocations: 0.7167 MB / 0.9921 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.726e-05/0.2711, allocations: 17.55 kB / 0.9921 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.177e-05/0.2712, allocations: 47.42 kB / 0.9922 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.2712, allocations: 0 / 0.9922 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.2878, allocations: 4.809 MB / 0.9969 GB, free: 9.582 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.2881, allocations: 212.8 kB / 0.9971 GB, free: 9.344 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.047, allocations: 0 / 0.9971 GB, free: 9.344 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)