Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.516/2.516, allocations: 284.9 MB / 292.4 MB, free: 10.59 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.001486/0.001485, allocations: 180.9 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001084/0.001084, allocations: 90.22 kB / 0.7321 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.618e-05, allocations: 3.984 kB / 0.8509 GB, free: 3.309 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8131/0.8132, allocations: 115.3 MB / 0.9634 GB, free: 78.5 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/1.049, allocations: 137.4 MB / 1.098 GB, free: 3.082 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/1.049, allocations: 76.45 kB / 1.098 GB, free: 3.008 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007095/1.056, allocations: 1.612 MB / 1.099 GB, free: 1.43 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.683e-06/1.056, allocations: 0 / 1.099 GB, free: 1.43 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.005e-05/1.056, allocations: 0 / 1.099 GB, free: 1.43 MB / 0.698 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.0005891/1.057, allocations: 396 kB / 1.1 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.057, allocations: 8.562 kB / 1.1 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/1.057, allocations: 10.2 kB / 1.1 GB, free: 0.9766 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/1.057, allocations: 179 kB / 1.1 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/1.057, allocations: 5.438 kB / 1.1 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/1.057, allocations: 4 kB / 1.1 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001311/1.057, allocations: 33.05 kB / 1.1 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/1.058, allocations: 62.28 kB / 1.1 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/1.058, allocations: 0 / 1.1 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/1.058, allocations: 1.172 kB / 1.1 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/1.058, allocations: 0 / 1.1 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005813/1.058, allocations: 267.3 kB / 1.1 GB, free: 368 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/1.058, allocations: 70.42 kB / 1.1 GB, free: 292 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/1.059, allocations: 55 kB / 1.1 GB, free: 236 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/1.059, allocations: 0.8125 kB / 1.1 GB, free: 236 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/1.059, allocations: 116.9 kB / 1.1 GB, free: 104 kB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 2.965e-06/1.059, allocations: 0 / 1.1 GB, free: 104 kB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0003775/1.059, allocations: 114.4 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.884e-05/1.059, allocations: 115.3 kB / 1.101 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/1.059, allocations: 101.8 kB / 1.101 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/1.06, allocations: 29.7 kB / 1.101 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/1.06, allocations: 89.95 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/1.06, allocations: 32.81 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-06/1.06, allocations: 0 / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001533/1.06, allocations: 322.8 kB / 1.101 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.538e-05/1.06, allocations: 28.56 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/1.06, allocations: 94.03 kB / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/1.06, allocations: 49.47 kB / 1.101 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.06, allocations: 0 / 1.101 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003824/1.061, allocations: 148.7 kB / 1.101 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/1.061, allocations: 37.69 kB / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/1.061, allocations: 0 / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/1.061, allocations: 4 kB / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/1.061, allocations: 38.33 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.061, allocations: 0 / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/1.061, allocations: 11.95 kB / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/1.061, allocations: 8 kB / 1.102 GB, free: 14.82 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.0001797/1.061, allocations: 156.7 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003525/1.062, allocations: 149.4 kB / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/1.062, allocations: 7.906 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/1.062, allocations: 8.625 kB / 1.102 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.872e-06/1.062, allocations: 3.953 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/1.062, allocations: 4 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/1.062, allocations: 0 / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/1.062, allocations: 154.2 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/1.062, allocations: 0 / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.054e-05/1.062, allocations: 11.98 kB / 1.102 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/1.062, allocations: 0 / 1.102 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/1.062, allocations: 4 kB / 1.102 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/1.062, allocations: 4 kB / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.062, allocations: 4 kB / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/1.063, allocations: 164.9 kB / 1.102 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/1.063, allocations: 85.02 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/1.063, allocations: 4 kB / 1.102 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/1.063, allocations: 4 kB / 1.102 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/1.063, allocations: 11.98 kB / 1.102 GB, free: 13.97 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/1.063, allocations: 7.812 kB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.429e-05/1.063, allocations: 94.34 kB / 1.102 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.1e-07/1.063, allocations: 0 / 1.102 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003494/1.063, allocations: 23.95 kB / 1.102 GB, free: 13.85 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.0008001/1.064, allocations: 0.7011 MB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003682/1.065, allocations: 160 kB / 1.103 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/1.065, allocations: 0 / 1.103 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/1.065, allocations: 175.4 kB / 1.103 GB, free: 12.77 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/1.065, allocations: 13.67 kB / 1.103 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005924/1.066, allocations: 140.5 kB / 1.104 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/1.066, allocations: 0.6968 MB / 1.104 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00012/1.066, allocations: 10.31 kB / 1.104 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.435e-05/1.066, allocations: 23.42 kB / 1.104 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of SimCode: time 9.31e-07/1.066, allocations: 0 / 1.104 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03701/1.103, allocations: 1.485 MB / 1.106 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003791/1.104, allocations: 160 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/3.449, allocations: 4.047 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)