Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",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.00112/0.00112, 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.001514/0.001514, allocations: 187.4 kB / 16.62 MB, free: 6.613 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.325/1.325, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.775/1.775, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001457/0.001457, allocations: 72.62 kB / 0.6718 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2644, allocations: 114.6 MB / 0.7837 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.003478/0.2679, allocations: 1.384 MB / 0.785 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007079/0.2687, allocations: 288 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.702e-05/0.2688, allocations: 0 / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.2689, allocations: 3.938 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.2691, allocations: 11.86 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.2693, allocations: 35.89 kB / 0.7853 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2695, allocations: 59.86 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.805e-05/0.2696, allocations: 11.98 kB / 0.7854 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2697, allocations: 31.84 kB / 0.7854 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.2699, allocations: 31.91 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.2699, allocations: 7.938 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.654e-05/0.2699, allocations: 4 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.609e-05/0.27, allocations: 8 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.233e-05/0.2701, allocations: 31.84 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.2702, allocations: 64.02 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2702, allocations: 0 / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.175e-06/0.2702, allocations: 4 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.2703, allocations: 3.984 kB / 0.7856 GB, free: 11.18 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006323/0.2709, allocations: 393 kB / 0.7859 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.271, allocations: 8.031 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.271, allocations: 34.75 kB / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.271, allocations: 8.844 kB / 0.786 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.2712, allocations: 176.3 kB / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.2713, allocations: 12.31 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.2713, allocations: 4.375 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.2715, allocations: 78.2 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2716, allocations: 3.938 kB / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.2716, allocations: 0 / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.2716, allocations: 0 / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.2717, allocations: 43.97 kB / 0.7863 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.2722, allocations: 288.7 kB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.2724, allocations: 70.44 kB / 0.7866 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.2725, allocations: 64.86 kB / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.2726, allocations: 0 / 0.7867 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002481/0.2728, allocations: 114.1 kB / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.2728, allocations: 0 / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004536/0.2733, allocations: 207.3 kB / 0.787 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.2734, allocations: 114.8 kB / 0.7871 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.2735, allocations: 113.8 kB / 0.7872 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.2735, allocations: 29.7 kB / 0.7873 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.2736, allocations: 92.08 kB / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.2737, allocations: 23.7 kB / 0.7874 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.2737, allocations: 37.7 kB / 0.7874 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.2739, allocations: 326.8 kB / 0.7877 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.205e-05/0.2739, allocations: 35.98 kB / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.2741, allocations: 103.1 kB / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.2744, allocations: 215.7 kB / 0.7881 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.2744, allocations: 4 kB / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003361/0.2747, allocations: 199 kB / 0.7883 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.2748, allocations: 29.7 kB / 0.7883 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.2748, allocations: 4.281 kB / 0.7883 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.2748, allocations: 8 kB / 0.7883 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.275, allocations: 27.92 kB / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.275, allocations: 4 kB / 0.7883 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.312e-05/0.2751, allocations: 15.78 kB / 0.7883 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.2751, allocations: 12 kB / 0.7883 GB, free: 7.992 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * 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.000173/0.2753, allocations: 180 kB / 0.7885 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.2753, allocations: 7.906 kB / 0.7885 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.2754, allocations: 8.375 kB / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2754, allocations: 0 / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.2754, allocations: 4 kB / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2754, allocations: 0 / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.2756, allocations: 189.5 kB / 0.7887 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2756, allocations: 0 / 0.7887 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.955e-05/0.2756, allocations: 4 kB / 0.7887 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2756, allocations: 0 / 0.7887 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.2757, allocations: 4 kB / 0.7887 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2757, allocations: 0 / 0.7887 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2757, allocations: 0 / 0.7887 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.276, allocations: 242.5 kB / 0.789 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.2761, allocations: 81.05 kB / 0.789 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.2761, allocations: 4 kB / 0.789 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.159e-05/0.2762, allocations: 8 kB / 0.789 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.2763, allocations: 12.12 kB / 0.7891 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.2763, allocations: 4 kB / 0.7891 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.639e-05/0.2763, allocations: 91.27 kB / 0.7891 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2763, allocations: 0 / 0.7891 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002546/0.2766, allocations: 23.91 kB / 0.7892 GB, free: 7.039 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0007276/0.2773, allocations: 0.7804 MB / 0.7899 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003178/0.2777, allocations: 167.2 kB / 0.7901 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2777, allocations: 0 / 0.7901 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.2779, allocations: 191.3 kB / 0.7903 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.2781, allocations: 14.44 kB / 0.7903 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.2801, allocations: 1.611 MB / 0.7919 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.2804, allocations: 0.6924 MB / 0.7925 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.991e-05/0.2805, allocations: 12.66 kB / 0.7926 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.2805, allocations: 15.44 kB / 0.7926 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/0.2805, allocations: 0 / 0.7926 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.304, allocations: 2.041 MB / 0.7946 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.924, allocations: 9.078 kB / 0.7946 GB, free: 1.406 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)