Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.23/1.23, allocations: 249.4 MB / 256.7 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009427/0.0009427, allocations: 176.5 kB / 316 MB, free: 3.539 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 0.5667 GB, free: 15.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008366/0.0008366, allocations: 86.39 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3489/0.3498, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.5147, allocations: 106.3 MB / 0.8847 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5097/1.024, allocations: 132.4 MB / 1.014 GB, free: 6.141 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/1.025, allocations: 74.08 kB / 1.014 GB, free: 6.098 MB / 0.6355 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.004631/1.029, allocations: 1.704 MB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/1.029, allocations: 8 kB / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.511e-05/1.029, allocations: 7.906 kB / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/1.03, allocations: 182.3 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/1.03, allocations: 4 kB / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/1.03, allocations: 8 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.78e-05/1.03, allocations: 25.75 kB / 1.016 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.562e-05/1.03, allocations: 68.16 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/1.03, allocations: 0 / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/1.03, allocations: 0 / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/1.03, allocations: 0 / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/1.03, allocations: 270.6 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.966e-05/1.03, allocations: 74.97 kB / 1.016 GB, free: 3.949 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.1e-05/1.03, allocations: 49.23 kB / 1.016 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/1.03, allocations: 3.188 kB / 1.016 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/1.031, allocations: 110.9 kB / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/1.031, allocations: 0 / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002299/1.031, allocations: 116.7 kB / 1.017 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/1.031, allocations: 114 kB / 1.017 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.431e-05/1.031, allocations: 101.2 kB / 1.017 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/1.031, allocations: 29.7 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.701e-05/1.031, allocations: 87.27 kB / 1.017 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/1.031, allocations: 34.2 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/1.031, allocations: 112 / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.031, allocations: 322.5 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.99e-05/1.031, allocations: 29.44 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.743e-05/1.031, allocations: 90.66 kB / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.211e-05/1.031, allocations: 52.72 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.031, allocations: 4 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000202/1.032, allocations: 144 kB / 1.018 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/1.032, allocations: 8 kB / 1.018 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/1.032, allocations: 288 / 1.018 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/1.032, allocations: 8 kB / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/1.032, allocations: 27.92 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/1.032, allocations: 4.312 kB / 1.018 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.858e-05/1.032, allocations: 7.906 kB / 1.018 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/1.032, allocations: 11.5 kB / 1.018 GB, free: 2.652 MB / 0.6355 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.000119/1.032, allocations: 158 kB / 1.018 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/1.032, allocations: 15.89 kB / 1.018 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/1.032, allocations: 8.359 kB / 1.018 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/1.032, allocations: 3.938 kB / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/1.032, allocations: 0 / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.032, allocations: 0 / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/1.032, allocations: 168.6 kB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/1.032, allocations: 0 / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/1.032, allocations: 4 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/1.032, allocations: 3.938 kB / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/1.032, allocations: 8 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/1.032, allocations: 3.984 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/1.032, allocations: 0 / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001982/1.033, allocations: 173.3 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002867/1.033, allocations: 0.524 MB / 1.019 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/1.033, allocations: 93 kB / 1.019 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/1.033, allocations: 4 kB / 1.019 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.3e-05/1.033, allocations: 4 kB / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/1.033, allocations: 11.55 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/1.033, allocations: 7.938 kB / 1.019 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.668e-05/1.033, allocations: 86.72 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0008221/1.034, allocations: 20 kB / 1.019 GB, free: 1.344 MB / 0.6355 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.0001086/1.034, allocations: 111.2 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001836/1.034, allocations: 125.9 kB / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/1.034, allocations: 0 / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/1.034, allocations: 150.1 kB / 1.019 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/1.035, allocations: 19.45 kB / 1.019 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/1.035, allocations: 109.3 kB / 1.019 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/1.035, allocations: 0.7036 MB / 1.02 GB, free: 176 kB / 0.6355 GB Notification: Performance of SimCode: time 2.21e-07/1.035, allocations: 0 / 1.02 GB, free: 176 kB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)