Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",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/BuildingSystems 2.0.0-master/package.mo): time 0.7142/0.7142, allocations: 141.8 MB / 149.1 MB, free: 10.18 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 174.8 kB / 181.9 MB, free: 7.078 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 221.4 MB / 436 MB, free: 15.1 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009225, allocations: 98.27 kB / 0.507 GB, free: 17.51 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001832/0.001832, allocations: 279.3 kB / 0.5885 GB, free: 1.055 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3877/0.3896, allocations: 89.62 MB / 0.676 GB, free: 136.5 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.5369, allocations: 82.78 MB / 0.7568 GB, free: 79.64 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6035/1.14, allocations: 351 MB / 1.1 GB, free: 1.352 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001608/1.141, allocations: 73.7 kB / 1.1 GB, free: 1.316 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.04624/1.187, allocations: 20.32 MB / 1.119 GB, free: 0.9023 MB / 0.6825 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/1.187, allocations: 8 kB / 1.12 GB, free: 0.8945 MB / 0.6825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/1.187, allocations: 27.8 kB / 1.12 GB, free: 0.8672 MB / 0.6825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/1.187, allocations: 213.9 kB / 1.12 GB, free: 0.6289 MB / 0.6825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/1.187, allocations: 4 kB / 1.12 GB, free: 0.625 MB / 0.6825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/1.187, allocations: 15.91 kB / 1.12 GB, free: 0.6094 MB / 0.6825 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004677/1.188, allocations: 411.5 kB / 1.12 GB, free: 284 kB / 0.6825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/1.188, allocations: 220.5 kB / 1.12 GB, free: 92 kB / 0.6825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/1.188, allocations: 0 / 1.12 GB, free: 92 kB / 0.6825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/1.188, allocations: 4 kB / 1.12 GB, free: 88 kB / 0.6825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/1.188, allocations: 8 kB / 1.12 GB, free: 80 kB / 0.6825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/1.189, allocations: 0.9523 MB / 1.121 GB, free: 15.14 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/1.19, allocations: 135 kB / 1.121 GB, free: 15.02 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.019e-05/1.19, allocations: 53.55 kB / 1.121 GB, free: 14.98 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001442/1.191, allocations: 1.931 MB / 1.123 GB, free: 12.73 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/1.191, allocations: 38.42 kB / 1.123 GB, free: 12.68 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/1.191, allocations: 0 / 1.123 GB, free: 12.68 MB / 0.6982 GB Notification: Performance of matching and sorting (n=15): time 0.0004837/1.192, allocations: 134.2 kB / 1.124 GB, free: 12.56 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/1.192, allocations: 58.84 kB / 1.124 GB, free: 12.49 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/1.192, allocations: 133.5 kB / 1.124 GB, free: 12.37 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/1.192, allocations: 25.7 kB / 1.124 GB, free: 12.34 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/1.192, allocations: 145.9 kB / 1.124 GB, free: 12.2 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/1.192, allocations: 41.67 kB / 1.124 GB, free: 12.16 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-06/1.192, allocations: 4 kB / 1.124 GB, free: 12.16 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.192, allocations: 324.4 kB / 1.124 GB, free: 11.84 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.401e-05/1.192, allocations: 34.55 kB / 1.124 GB, free: 11.81 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/1.192, allocations: 134.9 kB / 1.124 GB, free: 11.64 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/1.193, allocations: 85.27 kB / 1.124 GB, free: 11.57 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/1.193, allocations: 7.984 kB / 1.124 GB, free: 11.57 MB / 0.6982 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004972/1.193, allocations: 201.1 kB / 1.125 GB, free: 11.39 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/1.193, allocations: 4.469 kB / 1.125 GB, free: 11.38 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/1.193, allocations: 8 kB / 1.125 GB, free: 11.38 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/1.193, allocations: 4 kB / 1.125 GB, free: 11.37 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/1.194, allocations: 63.91 kB / 1.125 GB, free: 11.31 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/1.194, allocations: 7.906 kB / 1.125 GB, free: 11.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/1.194, allocations: 19.78 kB / 1.125 GB, free: 11.28 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/1.194, allocations: 15.5 kB / 1.125 GB, free: 11.27 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 1 * 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 8.341e-05/1.194, allocations: 112.8 kB / 1.125 GB, free: 11.15 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.522e-05/1.194, allocations: 19.83 kB / 1.125 GB, free: 11.13 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005262/1.194, allocations: 183.4 kB / 1.125 GB, free: 10.97 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/1.194, allocations: 3.984 kB / 1.125 GB, free: 10.97 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/1.194, allocations: 0 / 1.125 GB, free: 10.97 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/1.194, allocations: 4 kB / 1.125 GB, free: 10.96 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/1.195, allocations: 185.4 kB / 1.125 GB, free: 10.76 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/1.195, allocations: 0 / 1.125 GB, free: 10.76 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/1.195, allocations: 23.98 kB / 1.125 GB, free: 10.74 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/1.195, allocations: 4 kB / 1.125 GB, free: 10.73 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/1.195, allocations: 3.938 kB / 1.125 GB, free: 10.73 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/1.195, allocations: 7.984 kB / 1.125 GB, free: 10.72 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.195, allocations: 3.938 kB / 1.125 GB, free: 10.72 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004309/1.195, allocations: 234.5 kB / 1.126 GB, free: 10.49 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005675/1.196, allocations: 0.614 MB / 1.126 GB, free: 9.887 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 9.954e-05/1.196, allocations: 124.3 kB / 1.126 GB, free: 9.754 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/1.196, allocations: 7.984 kB / 1.126 GB, free: 9.746 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/1.196, allocations: 12 kB / 1.126 GB, free: 9.734 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.023e-05/1.196, allocations: 11.8 kB / 1.126 GB, free: 9.727 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/1.196, allocations: 7.984 kB / 1.126 GB, free: 9.719 MB / 0.6982 GB Notification: Performance of sort global known variables: time 5.839e-05/1.196, allocations: 104.9 kB / 1.126 GB, free: 9.625 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0009869/1.197, allocations: 99.02 kB / 1.126 GB, free: 9.543 MB / 0.6982 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0002954/1.198, allocations: 183.1 kB / 1.127 GB, free: 9.352 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002156/1.198, allocations: 105.7 kB / 1.127 GB, free: 9.266 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.198, allocations: 4 kB / 1.127 GB, free: 9.262 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 8.847e-05/1.198, allocations: 44.55 kB / 1.127 GB, free: 9.227 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/1.198, allocations: 23.61 kB / 1.127 GB, free: 9.207 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004638/1.199, allocations: 168.1 kB / 1.127 GB, free: 9.027 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003559/1.199, allocations: 0.7512 MB / 1.128 GB, free: 8.25 MB / 0.6982 GB Notification: Performance of SimCode: time 2.51e-07/1.199, allocations: 0 / 1.128 GB, free: 8.25 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)