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.77/1.77, allocations: 292.6 MB / 307.5 MB, free: 5.156 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.001135/0.001135, allocations: 187.5 kB / 377.1 MB, free: 1.512 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.651/1.651, allocations: 205.4 MB / 0.6366 GB, free: 8.617 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.0009359/0.0009356, allocations: 96.03 kB / 0.7509 GB, free: 63.1 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003248, allocations: 8 kB / 0.8749 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2627, allocations: 116.3 MB / 0.9884 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7703/1.033, allocations: 139.2 MB / 1.124 GB, free: 35.36 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/1.033, allocations: 78.95 kB / 1.125 GB, free: 35.3 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.004095/1.037, allocations: 1.635 MB / 1.126 GB, free: 34.06 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.302e-06/1.037, allocations: 0 / 1.126 GB, free: 34.06 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.478e-06/1.038, allocations: 0 / 1.126 GB, free: 34.06 MB / 0.7292 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.0003981/1.038, allocations: 393.5 kB / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/1.038, allocations: 16.02 kB / 1.126 GB, free: 33.62 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.703e-05/1.038, allocations: 38.08 kB / 1.127 GB, free: 33.58 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/1.038, allocations: 10.84 kB / 1.127 GB, free: 33.57 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/1.038, allocations: 179.1 kB / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/1.038, allocations: 3.844 kB / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/1.038, allocations: 11.38 kB / 1.127 GB, free: 33.35 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/1.038, allocations: 72.81 kB / 1.127 GB, free: 33.29 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/1.038, allocations: 0 / 1.127 GB, free: 33.29 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/1.038, allocations: 4 kB / 1.127 GB, free: 33.28 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/1.038, allocations: 0 / 1.127 GB, free: 33.28 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/1.039, allocations: 48.06 kB / 1.127 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003647/1.039, allocations: 291.5 kB / 1.127 GB, free: 32.93 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/1.039, allocations: 82.64 kB / 1.127 GB, free: 32.85 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/1.039, allocations: 8 kB / 1.127 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001382/1.039, allocations: 115.3 kB / 1.127 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/1.039, allocations: 4 kB / 1.127 GB, free: 32.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0003919/1.04, allocations: 286.4 kB / 1.128 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/1.04, allocations: 118.8 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.269e-05/1.04, allocations: 110.5 kB / 1.128 GB, free: 32.18 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/1.04, allocations: 29.27 kB / 1.128 GB, free: 32.15 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.575e-05/1.04, allocations: 88.14 kB / 1.128 GB, free: 32.06 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/1.04, allocations: 27.33 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/1.04, allocations: 0 / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.304e-05/1.04, allocations: 326.3 kB / 1.128 GB, free: 31.71 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.969e-05/1.04, allocations: 35.42 kB / 1.128 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.394e-05/1.04, allocations: 109 kB / 1.128 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/1.04, allocations: 90.17 kB / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.04, allocations: 0 / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002678/1.041, allocations: 204.9 kB / 1.129 GB, free: 31.28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/1.041, allocations: 33.7 kB / 1.129 GB, free: 31.24 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/1.041, allocations: 4 kB / 1.129 GB, free: 31.23 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.041, allocations: 1.219 kB / 1.129 GB, free: 31.23 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/1.041, allocations: 28.2 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/1.041, allocations: 7.953 kB / 1.129 GB, free: 31.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.313e-05/1.041, allocations: 19.78 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/1.041, allocations: 8.156 kB / 1.129 GB, free: 31.18 MB / 0.7292 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/1.041, allocations: 175.3 kB / 1.129 GB, free: 31 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/1.041, allocations: 7.906 kB / 1.129 GB, free: 30.99 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/1.041, allocations: 8.375 kB / 1.129 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/1.041, allocations: 5.047 kB / 1.129 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.041, allocations: 4 kB / 1.129 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/1.041, allocations: 3.953 kB / 1.129 GB, free: 30.97 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.11e-05/1.041, allocations: 176.2 kB / 1.129 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/1.041, allocations: 4.656 kB / 1.129 GB, free: 30.76 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.25e-05/1.041, allocations: 12.03 kB / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/1.041, allocations: 0 / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/1.041, allocations: 4 kB / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.041, allocations: 0.875 kB / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/1.041, allocations: 0 / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/1.042, allocations: 237.5 kB / 1.129 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.37e-05/1.042, allocations: 89.08 kB / 1.129 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/1.042, allocations: 8 kB / 1.129 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/1.042, allocations: 4 kB / 1.129 GB, free: 30.4 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/1.042, allocations: 7.516 kB / 1.129 GB, free: 30.4 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/1.042, allocations: 0.6875 kB / 1.129 GB, free: 30.4 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.824e-05/1.042, allocations: 92 kB / 1.13 GB, free: 30.31 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.1e-07/1.042, allocations: 0.9375 kB / 1.13 GB, free: 30.31 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002183/1.042, allocations: 24 kB / 1.13 GB, free: 30.29 MB / 0.7292 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 (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.0004563/1.042, allocations: 0.7768 MB / 1.13 GB, free: 29.5 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002403/1.043, allocations: 177 kB / 1.131 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/1.043, allocations: 0 / 1.131 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001449/1.043, allocations: 195.6 kB / 1.131 GB, free: 29.14 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/1.043, allocations: 12.97 kB / 1.131 GB, free: 29.13 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008002/1.044, allocations: 1.804 MB / 1.132 GB, free: 27.27 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/1.044, allocations: 0.6911 MB / 1.133 GB, free: 26.57 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.963e-05/1.044, allocations: 8.672 kB / 1.133 GB, free: 26.55 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/1.044, allocations: 20 kB / 1.133 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of SimCode: time 7.01e-07/1.044, allocations: 8 kB / 1.133 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/1.057, allocations: 1.789 MB / 1.135 GB, free: 25.57 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/1.057, allocations: 188.6 kB / 1.135 GB, free: 25.34 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.73, allocations: 0 / 1.135 GB, free: 25.34 MB / 0.7292 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)