Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck",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.514/1.514, allocations: 289.8 MB / 297 MB, free: 12.64 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 182.1 kB / 366.3 MB, free: 11.96 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.1 MB / 0.6256 GB, free: 2.035 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000972/0.0009719, allocations: 82.89 kB / 0.7395 GB, free: 47.13 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.2748/0.2758, allocations: 122.4 MB / 0.8591 GB, free: 7.117 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7751/1.051, allocations: 116.3 MB / 0.9726 GB, free: 81.45 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.992/2.043, allocations: 367.2 MB / 1.331 GB, free: 188.6 MB / 0.8621 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/2.043, allocations: 64.36 kB / 1.331 GB, free: 188.6 MB / 0.8621 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.02933/2.073, allocations: 13.08 MB / 1.344 GB, free: 186.5 MB / 0.8621 GB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/2.073, allocations: 8.75 kB / 1.344 GB, free: 186.5 MB / 0.8621 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/2.073, allocations: 9.344 kB / 1.344 GB, free: 186.5 MB / 0.8621 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/2.073, allocations: 163 kB / 1.344 GB, free: 186.3 MB / 0.8621 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/2.073, allocations: 3.906 kB / 1.344 GB, free: 186.3 MB / 0.8621 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/2.073, allocations: 2.906 kB / 1.344 GB, free: 186.3 MB / 0.8621 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.994e-05/2.073, allocations: 20.02 kB / 1.344 GB, free: 186.2 MB / 0.8621 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.618e-05/2.073, allocations: 48.27 kB / 1.344 GB, free: 186.2 MB / 0.8621 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/2.073, allocations: 6.844 kB / 1.344 GB, free: 186.2 MB / 0.8621 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/2.073, allocations: 4.625 kB / 1.344 GB, free: 186.2 MB / 0.8621 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/2.073, allocations: 0 / 1.344 GB, free: 186.2 MB / 0.8621 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/2.073, allocations: 139 kB / 1.344 GB, free: 186 MB / 0.8621 GB Notification: Performance of preOpt comSubExp (simulation): time 6.806e-05/2.074, allocations: 39.55 kB / 1.344 GB, free: 186 MB / 0.8621 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.673e-05/2.074, allocations: 13.55 kB / 1.344 GB, free: 186 MB / 0.8621 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006314/2.074, allocations: 0.6033 MB / 1.345 GB, free: 185.4 MB / 0.8621 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/2.074, allocations: 39.5 kB / 1.345 GB, free: 185.3 MB / 0.8621 GB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/2.074, allocations: 0 / 1.345 GB, free: 185.3 MB / 0.8621 GB Notification: Performance of matching and sorting (n=7): time 0.0005216/2.075, allocations: 280.1 kB / 1.345 GB, free: 185.1 MB / 0.8621 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.092e-05/2.075, allocations: 54 kB / 1.345 GB, free: 185 MB / 0.8621 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.864e-05/2.075, allocations: 96.42 kB / 1.346 GB, free: 184.9 MB / 0.8621 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/2.075, allocations: 25.7 kB / 1.346 GB, free: 184.9 MB / 0.8621 GB Notification: Performance of collectInitialEqns (initialization): time 3.325e-05/2.075, allocations: 90.55 kB / 1.346 GB, free: 184.8 MB / 0.8621 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/2.075, allocations: 30.17 kB / 1.346 GB, free: 184.8 MB / 0.8621 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-06/2.075, allocations: 0 / 1.346 GB, free: 184.8 MB / 0.8621 GB Notification: Performance of setup shared object (initialization): time 6.597e-05/2.075, allocations: 317.2 kB / 1.346 GB, free: 184.4 MB / 0.8621 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.222e-05/2.075, allocations: 9.281 kB / 1.346 GB, free: 184.4 MB / 0.8621 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.392e-05/2.075, allocations: 47.31 kB / 1.346 GB, free: 184.4 MB / 0.8621 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.108e-05/2.075, allocations: 20.2 kB / 1.346 GB, free: 184.4 MB / 0.8621 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/2.075, allocations: 3.094 kB / 1.346 GB, free: 184.4 MB / 0.8621 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001142/2.075, allocations: 84.28 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/2.075, allocations: 5.031 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/2.075, allocations: 3.984 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/2.075, allocations: 6.641 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.494e-05/2.075, allocations: 24.27 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/2.075, allocations: 4.75 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.965e-05/2.075, allocations: 0.875 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/2.075, allocations: 7.125 kB / 1.346 GB, free: 184.3 MB / 0.8621 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 5.779e-05/2.076, allocations: 106.9 kB / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/2.076, allocations: 6.875 kB / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.514e-05/2.076, allocations: 8.625 kB / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/2.076, allocations: 1.125 kB / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/2.076, allocations: 4.938 kB / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/2.076, allocations: 0 / 1.346 GB, free: 184.2 MB / 0.8621 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/2.076, allocations: 148.2 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/2.076, allocations: 3.906 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.362e-05/2.076, allocations: 17.08 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/2.076, allocations: 1.094 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/2.076, allocations: 1.188 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/2.076, allocations: 0 / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/2.076, allocations: 2.969 kB / 1.346 GB, free: 184 MB / 0.8621 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001465/2.076, allocations: 173.3 kB / 1.347 GB, free: 183.9 MB / 0.8621 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001958/2.076, allocations: 0.5405 MB / 1.347 GB, free: 183.4 MB / 0.8621 GB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/2.076, allocations: 84.2 kB / 1.347 GB, free: 183.3 MB / 0.8621 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/2.076, allocations: 5.203 kB / 1.347 GB, free: 183.3 MB / 0.8621 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/2.077, allocations: 1.094 kB / 1.347 GB, free: 183.3 MB / 0.8621 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.631e-05/2.077, allocations: 3.5 kB / 1.347 GB, free: 183.3 MB / 0.8621 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/2.077, allocations: 11.25 kB / 1.347 GB, free: 183.3 MB / 0.8621 GB Notification: Performance of sort global known variables: time 2.348e-05/2.077, allocations: 81.55 kB / 1.347 GB, free: 183.2 MB / 0.8621 GB Notification: Performance of remove unused functions: time 0.0009349/2.078, allocations: 14.97 kB / 1.347 GB, free: 183.2 MB / 0.8621 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001793/2.078, allocations: 121 kB / 1.347 GB, free: 183.1 MB / 0.8621 GB Notification: Performance of simCode: created initialization part: time 0.0001046/2.078, allocations: 39.58 kB / 1.348 GB, free: 183.1 MB / 0.8621 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/2.078, allocations: 2.688 kB / 1.348 GB, free: 183.1 MB / 0.8621 GB Notification: Performance of simCode: created simulation system equations: time 1.637e-05/2.078, allocations: 8.281 kB / 1.348 GB, free: 183.1 MB / 0.8621 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/2.078, allocations: 14.36 kB / 1.348 GB, free: 183.1 MB / 0.8621 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004804/2.079, allocations: 264.1 kB / 1.348 GB, free: 182.8 MB / 0.8621 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/2.079, allocations: 0.7068 MB / 1.348 GB, free: 182.1 MB / 0.8621 GB Notification: Performance of SimCode: time 2.41e-07/2.079, allocations: 0 / 1.348 GB, free: 182.1 MB / 0.8621 GB (rm -f Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1)