Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.754/2.754, allocations: 287.5 MB / 302.4 MB, free: 8.305 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.001369/0.001368, allocations: 173.6 kB / 371 MB, free: 10.89 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.4 MB / 0.6297 GB, free: 10.61 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.0009198/0.0009195, allocations: 89.17 kB / 0.743 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007939/0.0007942, allocations: 12.03 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2854, allocations: 115.3 MB / 0.9785 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001083/0.2865, allocations: 0.5638 MB / 0.979 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002/0.2885, allocations: 1.29 MB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.641e-05/0.2887, allocations: 0 / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.2888, allocations: 7.875 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.289, allocations: 31.81 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009928/0.29, allocations: 229.2 kB / 0.9805 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.2903, allocations: 235.4 kB / 0.9808 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.2904, allocations: 25.09 kB / 0.9808 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.2906, allocations: 111.7 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.2909, allocations: 99.69 kB / 0.981 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.329e-05/0.2909, allocations: 12 kB / 0.981 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.2911, allocations: 27.92 kB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.2912, allocations: 35.88 kB / 0.9811 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.2913, allocations: 53.64 kB / 0.9811 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.2915, allocations: 183.8 kB / 0.9813 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2916, allocations: 0 / 0.9813 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2916, allocations: 0 / 0.9813 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2916, allocations: 4 kB / 0.9813 GB, free: 25.36 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.0009293/0.2925, allocations: 490.6 kB / 0.9818 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.2926, allocations: 16.02 kB / 0.9818 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.875e-05/0.2927, allocations: 50.53 kB / 0.9818 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.2928, allocations: 23.75 kB / 0.9818 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.2931, allocations: 229.2 kB / 0.9821 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.2931, allocations: 15.98 kB / 0.9821 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.115e-05/0.2932, allocations: 20 kB / 0.9821 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000495/0.2937, allocations: 186.2 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.2937, allocations: 3.984 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.2938, allocations: 8 kB / 0.9823 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.2938, allocations: 3.938 kB / 0.9823 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.2941, allocations: 92.17 kB / 0.9824 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007814/0.2949, allocations: 480.6 kB / 0.9828 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.2953, allocations: 138.6 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.2956, allocations: 96.98 kB / 0.9831 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.2957, allocations: 4 kB / 0.9831 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004814/0.2961, allocations: 208.9 kB / 0.9833 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 2.835e-06/0.2962, allocations: 0 / 0.9833 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.001255/0.2974, allocations: 467.4 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.2975, allocations: 55.41 kB / 0.9838 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.2976, allocations: 145.8 kB / 0.9839 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.098e-05/0.2977, allocations: 41.7 kB / 0.9839 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.405e-05/0.2978, allocations: 104.7 kB / 0.984 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.42e-05/0.2979, allocations: 67.19 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.2979, allocations: 11.98 kB / 0.9841 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.741e-05/0.298, allocations: 326.8 kB / 0.9844 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.2985, allocations: 148.7 kB / 0.9846 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004865/0.299, allocations: 209.1 kB / 0.9848 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005082/0.2995, allocations: 220.4 kB / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2995, allocations: 0 / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001231/0.3008, allocations: 0.4937 MB / 0.9855 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.512e-05/0.3009, allocations: 71.39 kB / 0.9855 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3009, allocations: 0 / 0.9855 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.3009, allocations: 7.953 kB / 0.9855 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.3013, allocations: 52.03 kB / 0.9856 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.3013, allocations: 11.94 kB / 0.9856 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/0.3021, allocations: 106 kB / 0.9857 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.046e-05/0.3022, allocations: 16 kB / 0.9857 GB, free: 20.52 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.0002255/0.3024, allocations: 165.7 kB / 0.9859 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.3025, allocations: 11.91 kB / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.3025, allocations: 17.86 kB / 0.9859 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3025, allocations: 7.938 kB / 0.9859 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.445e-06/0.3025, allocations: 7.953 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3026, allocations: 0 / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.304, allocations: 0.6506 MB / 0.9866 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.304, allocations: 4 kB / 0.9866 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.3042, allocations: 11.92 kB / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.3042, allocations: 96 / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-05/0.3043, allocations: 23.92 kB / 0.9866 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.3043, allocations: 7.938 kB / 0.9866 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3043, allocations: 0 / 0.9866 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.3057, allocations: 451.1 kB / 0.987 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.3058, allocations: 92.91 kB / 0.9871 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.3059, allocations: 15.98 kB / 0.9871 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.3062, allocations: 15.95 kB / 0.9871 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.645e-05/0.3064, allocations: 15.97 kB / 0.9872 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.468e-05/0.3065, allocations: 19.98 kB / 0.9872 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.949e-05/0.3066, allocations: 103.2 kB / 0.9873 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.465e-06/0.3066, allocations: 0 / 0.9873 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0008609/0.3075, allocations: 67.94 kB / 0.9873 GB, free: 18.75 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.001947/0.3095, allocations: 1.027 MB / 0.9883 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001641/0.3112, allocations: 455.1 kB / 0.9888 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.3112, allocations: 4.062 kB / 0.9888 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.3118, allocations: 120.7 kB / 0.9889 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008554/0.3127, allocations: 31.92 kB / 0.9889 GB, free: 17.08 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004757/0.3175, allocations: 1.296 MB / 0.9902 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.3178, allocations: 0.7245 MB / 0.9909 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000193/0.318, allocations: 21.53 kB / 0.9909 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.3182, allocations: 47.42 kB / 0.991 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of SimCode: time 1.783e-06/0.3182, allocations: 0 / 0.991 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.35, allocations: 4.814 MB / 0.9957 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.3503, allocations: 198.2 kB / 0.9959 GB, free: 10.05 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.08, allocations: 0 / 0.9959 GB, free: 10.05 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)