Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",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 10.0.0-master/package.mo): time 1.838/1.838, allocations: 390.4 MB / 397.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000979/0.000979, allocations: 181.4 kB / 490.8 MB, free: 11.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 221.4 MB / 0.7863 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008846/0.0008847, allocations: 97.12 kB / 0.9264 GB, free: 20.95 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.2309/0.2318, allocations: 149.1 MB / 1.072 GB, free: 15.94 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4873/0.7192, allocations: 143 MB / 1.212 GB, free: 53.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1558/0.875, allocations: 148.5 MB / 1.357 GB, free: 5.477 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.8752, allocations: 76.48 kB / 1.357 GB, free: 5.402 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0014/0.8767, allocations: 0.5784 MB / 1.357 GB, free: 4.781 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.8767, allocations: 12 kB / 1.357 GB, free: 4.77 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.8767, allocations: 3.906 kB / 1.357 GB, free: 4.766 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.377e-05/0.8768, allocations: 175 kB / 1.357 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.8768, allocations: 0 / 1.357 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.8769, allocations: 4.75 kB / 1.357 GB, free: 4.555 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.423e-05/0.8769, allocations: 16 kB / 1.357 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.523e-05/0.877, allocations: 61.69 kB / 1.358 GB, free: 4.473 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.601e-06/0.877, allocations: 3.938 kB / 1.358 GB, free: 4.469 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.877, allocations: 0 / 1.358 GB, free: 4.469 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.8771, allocations: 7.984 kB / 1.358 GB, free: 4.461 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002629/0.8773, allocations: 245.2 kB / 1.358 GB, free: 4.184 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 2.974e-05/0.8774, allocations: 18.58 kB / 1.358 GB, free: 4.156 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.226e-05/0.8774, allocations: 4.859 kB / 1.358 GB, free: 4.148 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 5.68e-06/0.8774, allocations: 4 kB / 1.358 GB, free: 4.145 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.8774, allocations: 34.62 kB / 1.358 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.8774, allocations: 0 / 1.358 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1): time 0.0001518/0.8776, allocations: 37.61 kB / 1.358 GB, free: 4.059 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.8776, allocations: 81.11 kB / 1.358 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.171e-05/0.8777, allocations: 104.9 kB / 1.358 GB, free: 3.852 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.8777, allocations: 29.7 kB / 1.358 GB, free: 3.816 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.296e-05/0.8778, allocations: 107.8 kB / 1.358 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.873e-06/0.8778, allocations: 7.906 kB / 1.358 GB, free: 3.699 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.8778, allocations: 0 / 1.358 GB, free: 3.699 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.344e-05/0.8779, allocations: 310.8 kB / 1.358 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.944e-05/0.8779, allocations: 12 kB / 1.359 GB, free: 3.375 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.489e-05/0.878, allocations: 61.12 kB / 1.359 GB, free: 3.293 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.812e-05/0.878, allocations: 15.98 kB / 1.359 GB, free: 3.277 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.878, allocations: 0 / 1.359 GB, free: 3.277 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001305/0.8782, allocations: 85.48 kB / 1.359 GB, free: 3.188 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.8782, allocations: 4 kB / 1.359 GB, free: 3.184 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.8782, allocations: 11.84 kB / 1.359 GB, free: 3.172 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.8782, allocations: 4 kB / 1.359 GB, free: 3.168 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.455e-05/0.8783, allocations: 8 kB / 1.359 GB, free: 3.16 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.8783, allocations: 7.984 kB / 1.359 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.466e-05/0.8784, allocations: 7.938 kB / 1.359 GB, free: 3.145 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.8784, allocations: 8 kB / 1.359 GB, free: 3.137 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * 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 7.98e-05/0.8785, allocations: 142.8 kB / 1.359 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.8785, allocations: 0 / 1.359 GB, free: 2.984 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.685e-05/0.8785, allocations: 11.47 kB / 1.359 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.8785, allocations: 0 / 1.359 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.8785, allocations: 0 / 1.359 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.8785, allocations: 3.906 kB / 1.359 GB, free: 2.973 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.8787, allocations: 134.2 kB / 1.359 GB, free: 2.805 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.8787, allocations: 3.938 kB / 1.359 GB, free: 2.801 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.8787, allocations: 0 / 1.359 GB, free: 2.801 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.8787, allocations: 0 / 1.359 GB, free: 2.801 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.8787, allocations: 8 kB / 1.359 GB, free: 2.793 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.8787, allocations: 3.984 kB / 1.359 GB, free: 2.789 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8787, allocations: 0 / 1.359 GB, free: 2.789 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001236/0.8788, allocations: 131.5 kB / 1.359 GB, free: 2.645 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001916/0.879, allocations: 0.5116 MB / 1.36 GB, free: 2.113 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.85e-05/0.8791, allocations: 77.11 kB / 1.36 GB, free: 2.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.8791, allocations: 0 / 1.36 GB, free: 2.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.515e-05/0.8792, allocations: 7.906 kB / 1.36 GB, free: 2.012 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.8792, allocations: 7.969 kB / 1.36 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.8792, allocations: 4 kB / 1.36 GB, free: 2 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.934e-05/0.8792, allocations: 83.28 kB / 1.36 GB, free: 1.918 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008644/0.8801, allocations: 16 kB / 1.36 GB, free: 1.902 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0001532/0.8803, allocations: 115.3 kB / 1.36 GB, free: 1.781 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001007/0.8804, allocations: 45.64 kB / 1.36 GB, free: 1.73 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8804, allocations: 0 / 1.36 GB, free: 1.73 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.112e-05/0.8804, allocations: 33.7 kB / 1.36 GB, free: 1.691 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.8805, allocations: 1.875 kB / 1.36 GB, free: 1.691 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001666/0.8807, allocations: 67.84 kB / 1.36 GB, free: 1.602 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.881, allocations: 0.6885 MB / 1.361 GB, free: 0.8867 MB / 0.8542 GB Notification: Performance of SimCode: time 2.51e-07/0.881, allocations: 4 kB / 1.361 GB, free: 0.8828 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)