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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.897/1.897, allocations: 289.7 MB / 302.2 MB, free: 2.203 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.001111/0.001111, allocations: 179.7 kB / 371.6 MB, free: 3.379 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.599/1.599, allocations: 205.1 MB / 0.6309 GB, free: 11.77 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009513/0.0009512, allocations: 92.28 kB / 0.745 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.196e-05/4.209e-05, allocations: 0 / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2923, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8456/1.138, allocations: 139.2 MB / 1.116 GB, free: 44.53 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/1.138, allocations: 80.69 kB / 1.116 GB, free: 44.5 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.004072/1.142, allocations: 1.618 MB / 1.117 GB, free: 43.52 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.61e-07/1.142, allocations: 4 kB / 1.117 GB, free: 43.51 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.305e-06/1.142, allocations: 0 / 1.117 GB, free: 43.51 MB / 0.7448 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.0003339/1.143, allocations: 388.9 kB / 1.118 GB, free: 43.1 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/1.143, allocations: 9.344 kB / 1.118 GB, free: 43.09 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.22e-05/1.143, allocations: 33.62 kB / 1.118 GB, free: 43.05 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/1.143, allocations: 13.92 kB / 1.118 GB, free: 43.05 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/1.143, allocations: 185.6 kB / 1.118 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/1.143, allocations: 8.641 kB / 1.118 GB, free: 42.83 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/1.143, allocations: 0 / 1.118 GB, free: 42.83 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/1.143, allocations: 69.52 kB / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/1.143, allocations: 1.5 kB / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/1.143, allocations: 0 / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/1.143, allocations: 0 / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.454e-05/1.143, allocations: 32.7 kB / 1.118 GB, free: 42.76 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004254/1.144, allocations: 292.6 kB / 1.118 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.202e-05/1.144, allocations: 65.28 kB / 1.119 GB, free: 42.41 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.058e-05/1.144, allocations: 55 kB / 1.119 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/1.144, allocations: 4 kB / 1.119 GB, free: 42.38 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/1.144, allocations: 106.9 kB / 1.119 GB, free: 42.28 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/1.144, allocations: 4 kB / 1.119 GB, free: 42.28 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0002449/1.144, allocations: 160.2 kB / 1.119 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/1.144, allocations: 113.1 kB / 1.119 GB, free: 42.02 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.847e-05/1.144, allocations: 106.8 kB / 1.119 GB, free: 41.91 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/1.144, allocations: 29.08 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/1.144, allocations: 90.61 kB / 1.119 GB, free: 41.79 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/1.144, allocations: 23.25 kB / 1.119 GB, free: 41.78 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-06/1.144, allocations: 3.938 kB / 1.119 GB, free: 41.78 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.187e-05/1.145, allocations: 329.9 kB / 1.12 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.079e-05/1.145, allocations: 34.45 kB / 1.12 GB, free: 41.43 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.355e-05/1.145, allocations: 94.92 kB / 1.12 GB, free: 41.33 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.021e-05/1.145, allocations: 78.28 kB / 1.12 GB, free: 41.27 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/1.145, allocations: 0 / 1.12 GB, free: 41.27 MB / 0.7448 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000215/1.145, allocations: 190.6 kB / 1.12 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/1.145, allocations: 33.7 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/1.145, allocations: 4 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/1.145, allocations: 4.172 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/1.145, allocations: 31.31 kB / 1.12 GB, free: 41.04 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/1.145, allocations: 4 kB / 1.12 GB, free: 41.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.608e-05/1.145, allocations: 12.94 kB / 1.12 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/1.145, allocations: 11.94 kB / 1.12 GB, free: 41.02 MB / 0.7448 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 9.672e-05/1.145, allocations: 171.5 kB / 1.12 GB, free: 40.85 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/1.145, allocations: 7.906 kB / 1.12 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/1.145, allocations: 8.625 kB / 1.12 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/1.145, allocations: 0 / 1.12 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.145, allocations: 4.516 kB / 1.12 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/1.146, allocations: 0.6562 kB / 1.12 GB, free: 40.84 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/1.146, allocations: 182.2 kB / 1.12 GB, free: 40.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/1.146, allocations: 0 / 1.12 GB, free: 40.64 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.032e-05/1.146, allocations: 17.28 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/1.146, allocations: 4 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/1.146, allocations: 3.938 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/1.146, allocations: 0.8125 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/1.146, allocations: 0.75 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/1.146, allocations: 222.1 kB / 1.121 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/1.146, allocations: 84.48 kB / 1.121 GB, free: 40.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/1.146, allocations: 8 kB / 1.121 GB, free: 40.33 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.577e-05/1.146, allocations: 11.94 kB / 1.121 GB, free: 40.32 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/1.146, allocations: 7.094 kB / 1.121 GB, free: 40.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/1.146, allocations: 4.5 kB / 1.121 GB, free: 40.31 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.884e-05/1.146, allocations: 87.77 kB / 1.121 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/1.146, allocations: 0.5625 kB / 1.121 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002014/1.146, allocations: 23.95 kB / 1.121 GB, free: 40.21 MB / 0.7448 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.0003878/1.147, allocations: 0.7629 MB / 1.122 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001876/1.147, allocations: 164.9 kB / 1.122 GB, free: 39.34 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.147, allocations: 0 / 1.122 GB, free: 39.34 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/1.147, allocations: 179.6 kB / 1.122 GB, free: 39.22 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/1.147, allocations: 10.81 kB / 1.122 GB, free: 39.21 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004037/1.148, allocations: 154.6 kB / 1.122 GB, free: 39.06 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/1.148, allocations: 0.6951 MB / 1.123 GB, free: 38.35 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.8e-05/1.148, allocations: 13.27 kB / 1.123 GB, free: 38.34 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/1.148, allocations: 14.88 kB / 1.123 GB, free: 38.33 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/1.148, allocations: 0 / 1.123 GB, free: 38.33 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01259/1.161, allocations: 1.815 MB / 1.125 GB, free: 37.36 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/1.161, allocations: 173 kB / 1.125 GB, free: 37.14 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.752, allocations: 4 kB / 1.125 GB, free: 37.13 MB / 0.7448 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --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)