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.774/1.774, allocations: 289.9 MB / 297.4 MB, free: 6.367 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.001346/0.001345, allocations: 164.9 kB / 366.7 MB, free: 1.652 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.774/1.774, allocations: 205.2 MB / 0.626 GB, free: 7.137 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.0008684/0.0008684, allocations: 92.52 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.126e-05, allocations: 0 / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7066/0.7067, allocations: 116.3 MB / 0.9734 GB, free: 76.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2248/0.9315, allocations: 138.5 MB / 1.109 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.9318, allocations: 79.92 kB / 1.109 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.004539/0.9364, allocations: 1.618 MB / 1.11 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9364, allocations: 0.7188 kB / 1.11 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.9364, allocations: 0 / 1.11 GB, free: 9.988 MB / 0.7136 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.0004636/0.9369, allocations: 385.7 kB / 1.111 GB, free: 9.562 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.937, allocations: 12.03 kB / 1.111 GB, free: 9.551 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.937, allocations: 8.688 kB / 1.111 GB, free: 9.543 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.9372, allocations: 179 kB / 1.111 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.9373, allocations: 4.562 kB / 1.111 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.9373, allocations: 3.938 kB / 1.111 GB, free: 9.32 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.405e-05/0.9374, allocations: 37.3 kB / 1.111 GB, free: 9.285 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.9375, allocations: 64.42 kB / 1.111 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.9375, allocations: 0 / 1.111 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.9375, allocations: 4.781 kB / 1.111 GB, free: 9.215 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.9375, allocations: 0 / 1.111 GB, free: 9.215 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000419/0.938, allocations: 260.1 kB / 1.111 GB, free: 8.926 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.9381, allocations: 73.19 kB / 1.111 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.853e-05/0.9382, allocations: 49.67 kB / 1.111 GB, free: 8.797 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.9382, allocations: 1.156 kB / 1.111 GB, free: 8.797 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.9384, allocations: 117 kB / 1.111 GB, free: 8.664 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.9384, allocations: 1.469 kB / 1.111 GB, free: 8.664 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002588/0.9386, allocations: 113.7 kB / 1.112 GB, free: 8.547 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.9387, allocations: 114.8 kB / 1.112 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.554e-05/0.9388, allocations: 101.6 kB / 1.112 GB, free: 8.305 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.9389, allocations: 27.14 kB / 1.112 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/0.9389, allocations: 98.66 kB / 1.112 GB, free: 8.176 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.939, allocations: 19.75 kB / 1.112 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.085e-05/0.939, allocations: 3.156 kB / 1.112 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.9392, allocations: 330.7 kB / 1.112 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.109e-05/0.9392, allocations: 27.98 kB / 1.112 GB, free: 7.797 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.9393, allocations: 91.98 kB / 1.112 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.703e-05/0.9394, allocations: 43.61 kB / 1.112 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.9394, allocations: 0 / 1.112 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002519/0.9397, allocations: 160.3 kB / 1.113 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.9397, allocations: 34.92 kB / 1.113 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.9398, allocations: 4 kB / 1.113 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.9398, allocations: 4 kB / 1.113 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.9399, allocations: 23.92 kB / 1.113 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.9399, allocations: 6.266 kB / 1.113 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.94, allocations: 7.25 kB / 1.113 GB, free: 7.402 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.94, allocations: 15.94 kB / 1.113 GB, free: 7.387 MB / 0.7136 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.0001572/0.9402, allocations: 158.5 kB / 1.113 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002097/0.9404, allocations: 137.5 kB / 1.113 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.9404, allocations: 7.906 kB / 1.113 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.9405, allocations: 9.75 kB / 1.113 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.9405, allocations: 0 / 1.113 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.9405, allocations: 4.234 kB / 1.113 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.9405, allocations: 7.094 kB / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.9407, allocations: 158.2 kB / 1.113 GB, free: 6.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.9407, allocations: 3.984 kB / 1.113 GB, free: 6.859 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/0.9407, allocations: 7.938 kB / 1.113 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.9407, allocations: 0 / 1.113 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.9408, allocations: 8.938 kB / 1.113 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9408, allocations: 0 / 1.113 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.9408, allocations: 0 / 1.113 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.9411, allocations: 175.2 kB / 1.113 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-05/0.9411, allocations: 81.02 kB / 1.113 GB, free: 6.559 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.9412, allocations: 8 kB / 1.113 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.339e-05/0.9413, allocations: 9.859 kB / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.9413, allocations: 0 / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.9413, allocations: 8 kB / 1.113 GB, free: 6.535 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.091e-05/0.9414, allocations: 87.27 kB / 1.113 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9414, allocations: 0 / 1.113 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002267/0.9416, allocations: 16 kB / 1.113 GB, free: 6.434 MB / 0.7136 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.0006055/0.9422, allocations: 0.7156 MB / 1.114 GB, free: 5.691 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002417/0.9425, allocations: 151.2 kB / 1.114 GB, free: 5.531 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.9425, allocations: 0.5625 kB / 1.114 GB, free: 5.531 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.9427, allocations: 187.3 kB / 1.114 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001713/0.9429, allocations: 4 kB / 1.114 GB, free: 5.332 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004504/0.9433, allocations: 142.1 kB / 1.115 GB, free: 5.156 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.9437, allocations: 0.6939 MB / 1.115 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.9437, allocations: 13.03 kB / 1.115 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.9438, allocations: 19.44 kB / 1.115 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of SimCode: time 2.9e-07/0.9438, allocations: 4 kB / 1.115 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.9649, allocations: 1.504 MB / 1.117 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.9652, allocations: 152.4 kB / 1.117 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.645, allocations: 6.766 kB / 1.117 GB, free: 2.77 MB / 0.7136 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)