Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_8_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_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.427/1.427, allocations: 285.5 MB / 292.8 MB, free: 10.49 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.001156/0.001156, allocations: 177.3 kB / 361.1 MB, free: 7.117 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.287/1.287, allocations: 205.1 MB / 0.6195 GB, free: 10.33 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.0008954/0.0008954, allocations: 88.75 kB / 0.7325 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2125/0.2134, allocations: 121.5 MB / 0.8512 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.496/0.7094, allocations: 115.3 MB / 0.9638 GB, free: 77.94 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.8565, allocations: 137.5 MB / 1.098 GB, free: 2.539 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.8567, allocations: 77.59 kB / 1.098 GB, free: 2.465 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.004465/0.8612, allocations: 1.674 MB / 1.1 GB, free: 0.7812 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.8612, allocations: 12 kB / 1.1 GB, free: 0.7695 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.8613, allocations: 7.906 kB / 1.1 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.8614, allocations: 179 kB / 1.1 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.8615, allocations: 8.531 kB / 1.1 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.8615, allocations: 4 kB / 1.1 GB, free: 0.5391 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.85e-05/0.8616, allocations: 31.94 kB / 1.1 GB, free: 0.5078 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.561e-05/0.8617, allocations: 67.48 kB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.8617, allocations: 0 / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.8617, allocations: 0 / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.8617, allocations: 0 / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.862, allocations: 263.7 kB / 1.1 GB, free: 148 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.632e-05/0.8621, allocations: 73.09 kB / 1.1 GB, free: 68 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/0.8622, allocations: 50.17 kB / 1.1 GB, free: 16 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.8622, allocations: 0 / 1.1 GB, free: 16 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001147/0.8623, allocations: 121.3 kB / 1.101 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.8623, allocations: 0 / 1.101 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002009/0.8625, allocations: 114.3 kB / 1.101 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.8626, allocations: 115.8 kB / 1.101 GB, free: 15.63 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.373e-05/0.8627, allocations: 105 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.8627, allocations: 38.3 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.771e-05/0.8627, allocations: 84.14 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.8628, allocations: 28.14 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.8628, allocations: 0.5938 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.293e-05/0.8629, allocations: 324.3 kB / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.79e-05/0.8629, allocations: 28 kB / 1.101 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.119e-05/0.863, allocations: 91.86 kB / 1.101 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.299e-05/0.8631, allocations: 54.69 kB / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.8631, allocations: 0 / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002019/0.8633, allocations: 144.3 kB / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.8633, allocations: 4 kB / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.8633, allocations: 4 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.8634, allocations: 0.5938 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.8635, allocations: 28.55 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.8635, allocations: 5.344 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.8636, allocations: 7.906 kB / 1.102 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.8636, allocations: 8.812 kB / 1.102 GB, free: 14.64 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.0001089/0.8637, allocations: 166.9 kB / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.8637, allocations: 8.656 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.8638, allocations: 12.83 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.8638, allocations: 0 / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8638, allocations: 2.125 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.8638, allocations: 4.75 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.8639, allocations: 158.2 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.8639, allocations: 0.5625 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.277e-05/0.864, allocations: 8.188 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.864, allocations: 8 kB / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.864, allocations: 0 / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.864, allocations: 3.984 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.864, allocations: 5.125 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002012/0.8642, allocations: 163.5 kB / 1.102 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002856/0.8645, allocations: 0.5365 MB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.8645, allocations: 86.5 kB / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.8646, allocations: 8 kB / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.461e-05/0.8647, allocations: 4 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.373e-05/0.8647, allocations: 7.891 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.8647, allocations: 8 kB / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.416e-05/0.8648, allocations: 79.28 kB / 1.103 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007722/0.8655, allocations: 20 kB / 1.103 GB, free: 13.27 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.000113/0.8657, allocations: 119.9 kB / 1.103 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.8658, allocations: 121.8 kB / 1.103 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.8659, allocations: 5.125 kB / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.866, allocations: 149.8 kB / 1.103 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.8661, allocations: 13.11 kB / 1.103 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000265/0.8664, allocations: 116.5 kB / 1.103 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.8666, allocations: 0.7044 MB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.8667, allocations: 0 / 1.104 GB, free: 11.98 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)