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"}) [: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.1.4-maint.8.1.x/package.mo): time 1.528/1.528, allocations: 289.8 MB / 297.1 MB, free: 6.66 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.001044/0.001044, allocations: 181.3 kB / 366.3 MB, free: 1.988 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.374/1.374, allocations: 205.1 MB / 0.6256 GB, free: 5.824 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.0009083/0.0009085, allocations: 93.75 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2812/0.2821, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7501/1.032, allocations: 116.3 MB / 0.9727 GB, free: 68.5 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2009/1.233, allocations: 138.4 MB / 1.108 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/1.234, allocations: 80.47 kB / 1.108 GB, free: 9.945 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.005454/1.239, allocations: 1.666 MB / 1.11 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/1.239, allocations: 12 kB / 1.11 GB, free: 8.234 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/1.239, allocations: 7.906 kB / 1.11 GB, free: 8.227 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/1.239, allocations: 176 kB / 1.11 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/1.239, allocations: 3.906 kB / 1.11 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/1.24, allocations: 7.938 kB / 1.11 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001136/1.24, allocations: 35.92 kB / 1.11 GB, free: 7.969 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/1.24, allocations: 66.42 kB / 1.11 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/1.24, allocations: 3.984 kB / 1.11 GB, free: 7.895 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/1.24, allocations: 4 kB / 1.11 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/1.24, allocations: 0 / 1.11 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/1.24, allocations: 261.4 kB / 1.11 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/1.24, allocations: 61.17 kB / 1.11 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.543e-05/1.241, allocations: 65.58 kB / 1.11 GB, free: 7.465 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/1.241, allocations: 0 / 1.11 GB, free: 7.465 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/1.241, allocations: 111.3 kB / 1.11 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/1.241, allocations: 4 kB / 1.11 GB, free: 7.336 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.00038/1.241, allocations: 109.7 kB / 1.11 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/1.241, allocations: 122.7 kB / 1.111 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.962e-05/1.241, allocations: 106.8 kB / 1.111 GB, free: 6.969 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/1.241, allocations: 29.7 kB / 1.111 GB, free: 6.934 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.778e-05/1.241, allocations: 84.14 kB / 1.111 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/1.241, allocations: 27.64 kB / 1.111 GB, free: 6.82 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-06/1.242, allocations: 4 kB / 1.111 GB, free: 6.816 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.242, allocations: 322.8 kB / 1.111 GB, free: 6.492 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.13e-05/1.242, allocations: 28 kB / 1.111 GB, free: 6.465 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/1.242, allocations: 95.44 kB / 1.111 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/1.242, allocations: 47.97 kB / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.242, allocations: 0 / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002404/1.242, allocations: 149.4 kB / 1.111 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/1.242, allocations: 4 kB / 1.111 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/1.242, allocations: 4.562 kB / 1.111 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/1.242, allocations: 4 kB / 1.111 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/1.242, allocations: 23.92 kB / 1.111 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/1.242, allocations: 7.984 kB / 1.111 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/1.243, allocations: 13.12 kB / 1.111 GB, free: 6.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/1.243, allocations: 8 kB / 1.111 GB, free: 6.082 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.0001701/1.243, allocations: 162.5 kB / 1.112 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/1.243, allocations: 4.562 kB / 1.112 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/1.243, allocations: 12.28 kB / 1.112 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/1.243, allocations: 4 kB / 1.112 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.243, allocations: 3.938 kB / 1.112 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/1.243, allocations: 0 / 1.112 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/1.243, allocations: 162.2 kB / 1.112 GB, free: 5.691 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/1.243, allocations: 1.562 kB / 1.112 GB, free: 5.691 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.53e-05/1.243, allocations: 11.89 kB / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/1.243, allocations: 0 / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/1.243, allocations: 4 kB / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/1.243, allocations: 0 / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.243, allocations: 0 / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002414/1.243, allocations: 165.7 kB / 1.112 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003646/1.244, allocations: 0.5348 MB / 1.113 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/1.244, allocations: 85.77 kB / 1.113 GB, free: 4.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/1.244, allocations: 11.98 kB / 1.113 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.687e-05/1.244, allocations: 4 kB / 1.113 GB, free: 4.824 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.767e-05/1.244, allocations: 11.89 kB / 1.113 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/1.244, allocations: 8.484 kB / 1.113 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.512e-05/1.244, allocations: 90.02 kB / 1.113 GB, free: 4.719 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007606/1.245, allocations: 17.03 kB / 1.113 GB, free: 4.703 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.0001631/1.245, allocations: 116 kB / 1.113 GB, free: 4.582 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002478/1.245, allocations: 121.6 kB / 1.113 GB, free: 4.457 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.245, allocations: 0.5625 kB / 1.113 GB, free: 4.457 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/1.246, allocations: 157.7 kB / 1.113 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/1.246, allocations: 4.938 kB / 1.113 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/1.246, allocations: 115.5 kB / 1.113 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003821/1.246, allocations: 0.7049 MB / 1.114 GB, free: 3.426 MB / 0.7136 GB Notification: Performance of SimCode: time 2.21e-07/1.246, allocations: 0 / 1.114 GB, free: 3.426 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)