Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.516/1.516, allocations: 249.3 MB / 261.8 MB, free: 5.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 174.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.00115/0.00115, allocations: 86.55 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.421e-05, allocations: 4 kB / 0.7881 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1993, allocations: 106.3 MB / 0.8919 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6762/0.8756, allocations: 132 MB / 1.021 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.8759, allocations: 78.02 kB / 1.021 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004417/0.8803, allocations: 1.65 MB / 1.023 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.041e-06/0.8803, allocations: 3.938 kB / 1.023 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.8803, allocations: 0 / 1.023 GB, free: 1.266 MB / 0.6355 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.000412/0.8808, allocations: 386.8 kB / 1.023 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.8808, allocations: 12.03 kB / 1.023 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.656e-05/0.8808, allocations: 38.44 kB / 1.023 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.8809, allocations: 4 kB / 1.023 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.8811, allocations: 174.9 kB / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.8811, allocations: 7.188 kB / 1.023 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.8811, allocations: 4 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.8813, allocations: 71.55 kB / 1.023 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.8813, allocations: 0 / 1.023 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.8813, allocations: 7.922 kB / 1.023 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.8813, allocations: 0 / 1.023 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.133e-05/0.8814, allocations: 42.3 kB / 1.023 GB, free: 476 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004418/0.8819, allocations: 287.3 kB / 1.024 GB, free: 152 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.194e-05/0.882, allocations: 62.08 kB / 1.024 GB, free: 108 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.879e-05/0.882, allocations: 60.73 kB / 1.024 GB, free: 68 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.8821, allocations: 3.984 kB / 1.024 GB, free: 64 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001492/0.8822, allocations: 114.6 kB / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.8822, allocations: 0 / 1.024 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002591/0.8825, allocations: 149.7 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.8826, allocations: 114.3 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.636e-05/0.8827, allocations: 104.1 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.8827, allocations: 32.52 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.8828, allocations: 83.95 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.8828, allocations: 39.12 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.8828, allocations: 3.625 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.8829, allocations: 322.6 kB / 1.025 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.883, allocations: 29.12 kB / 1.025 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.8831, allocations: 94.58 kB / 1.025 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.456e-05/0.8832, allocations: 79.73 kB / 1.025 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.8832, allocations: 0 / 1.025 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002643/0.8835, allocations: 195.5 kB / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.8835, allocations: 29.7 kB / 1.025 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.8836, allocations: 4 kB / 1.025 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.8836, allocations: 7.953 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.8837, allocations: 23.92 kB / 1.025 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.8837, allocations: 4.281 kB / 1.025 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.122e-05/0.8838, allocations: 23.2 kB / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.8838, allocations: 4 kB / 1.025 GB, free: 14.63 MB / 0.6511 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.884, allocations: 168.5 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.884, allocations: 7.906 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.884, allocations: 11.19 kB / 1.025 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.884, allocations: 3.953 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.884, allocations: 0 / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.884, allocations: 4 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.8842, allocations: 189 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8842, allocations: 7.938 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.159e-05/0.8843, allocations: 4 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.8843, allocations: 3.938 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.8843, allocations: 3.984 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.8843, allocations: 4 kB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8843, allocations: 3.953 kB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.8846, allocations: 229.6 kB / 1.026 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.8847, allocations: 81.02 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.8847, allocations: 11.98 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6e-05/0.8848, allocations: 4 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.8848, allocations: 4 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.8848, allocations: 11 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.503e-05/0.8849, allocations: 87.39 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8849, allocations: 0 / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002091/0.8851, allocations: 23.44 kB / 1.026 GB, free: 13.75 MB / 0.6511 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) * 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 (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.0005527/0.8857, allocations: 0.7536 MB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002183/0.8859, allocations: 158.9 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.8859, allocations: 4.125 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.8861, allocations: 188.3 kB / 1.027 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.8863, allocations: 4 kB / 1.027 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004136/0.8867, allocations: 149.4 kB / 1.027 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.887, allocations: 0.7016 MB / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.889e-05/0.887, allocations: 8.656 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.8871, allocations: 22.38 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.513e-06/0.8871, allocations: 0 / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01299/0.9001, allocations: 1.837 MB / 1.03 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/0.9004, allocations: 171.6 kB / 1.03 GB, free: 9.871 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/2.519, allocations: 0 / 1.03 GB, free: 9.871 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)