Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.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: translateModel(BuildingSystems.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density") translateModel(BuildingSystems.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density") [: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.7798/0.7798, allocations: 141.8 MB / 149.1 MB, free: 4.547 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 182.6 kB / 181.9 MB, free: 204 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 221.3 MB / 436 MB, free: 9.398 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 95.39 kB / 0.507 GB, free: 24.15 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001867/0.001867, allocations: 280.8 kB / 0.5884 GB, free: 12.38 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.432e-05/1.457e-05, allocations: 4 kB / 0.6759 GB, free: 2.754 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5703/0.5704, allocations: 82.78 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.774/5.344, allocations: 1.885 GB / 2.642 GB, free: 194.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/5.344, allocations: 92.59 kB / 2.642 GB, free: 194.6 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.867/7.212, allocations: 489.5 MB / 3.12 GB, free: 149.5 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001094/7.212, allocations: 23.25 kB / 3.12 GB, free: 149.5 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003045/7.215, allocations: 1.034 MB / 3.121 GB, free: 149.1 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/7.215, allocations: 6.375 kB / 3.121 GB, free: 149.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/7.217, allocations: 291 kB / 3.121 GB, free: 149.1 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/7.219, allocations: 0.6308 MB / 3.122 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/7.219, allocations: 15.38 kB / 3.122 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/7.219, allocations: 39.88 kB / 3.122 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001024/7.221, allocations: 495.8 kB / 3.122 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/7.222, allocations: 0.5548 MB / 3.123 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/7.222, allocations: 0 / 3.123 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/7.222, allocations: 5.281 kB / 3.123 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.153e-05/7.222, allocations: 17.5 kB / 3.123 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/7.225, allocations: 2.465 MB / 3.125 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/7.226, allocations: 383.2 kB / 3.126 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/7.226, allocations: 244.9 kB / 3.126 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006592/7.227, allocations: 470.4 kB / 3.126 GB, free: 147 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/7.227, allocations: 42.25 kB / 3.126 GB, free: 147 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=41): time 2.444e-06/7.227, allocations: 0 / 3.126 GB, free: 147 MB / 0.6982 GB Notification: Performance of matching and sorting (n=41): time 0.001556/7.228, allocations: 486.5 kB / 3.127 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/7.228, allocations: 62.03 kB / 3.127 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/7.229, allocations: 361.8 kB / 3.127 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/7.229, allocations: 29.64 kB / 3.127 GB, free: 146.7 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/7.229, allocations: 244.1 kB / 3.127 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/7.229, allocations: 141.7 kB / 3.128 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/7.229, allocations: 0.5625 kB / 3.128 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.694e-05/7.229, allocations: 364.6 kB / 3.128 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/7.23, allocations: 146.2 kB / 3.128 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/7.23, allocations: 255.8 kB / 3.128 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/7.23, allocations: 216.8 kB / 3.129 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/7.23, allocations: 1.406 kB / 3.129 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007851/7.231, allocations: 490.8 kB / 3.129 GB, free: 146 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001956/7.231, allocations: 0.8845 MB / 3.13 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/7.231, allocations: 0 / 3.13 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/7.231, allocations: 10.25 kB / 3.13 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/7.232, allocations: 109.3 kB / 3.13 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003415/7.232, allocations: 0.6046 MB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007481/7.233, allocations: 62.8 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/7.233, allocations: 21.31 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/7.233, allocations: 5 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006622/7.234, allocations: 400.2 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/7.234, allocations: 0 / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/7.234, allocations: 13.25 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005484/7.234, allocations: 99.83 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/7.234, allocations: 5.719 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008819/7.235, allocations: 69.31 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.694e-05/7.235, allocations: 17.22 kB / 3.131 GB, free: 144.5 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001704/7.236, allocations: 115 kB / 3.131 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/7.236, allocations: 61.03 kB / 3.131 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/7.237, allocations: 464.1 kB / 3.132 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/7.237, allocations: 3.875 kB / 3.132 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/7.237, allocations: 3.906 kB / 3.132 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000825/7.238, allocations: 0.6865 MB / 3.132 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/7.24, allocations: 1.198 MB / 3.134 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/7.24, allocations: 3.75 kB / 3.134 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007091/7.241, allocations: 112 kB / 3.134 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/7.241, allocations: 6.656 kB / 3.134 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/7.241, allocations: 11.53 kB / 3.134 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002566/7.241, allocations: 0.5893 MB / 3.134 GB, free: 142.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/7.241, allocations: 7.062 kB / 3.134 GB, free: 142.9 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001253/7.242, allocations: 0.908 MB / 3.135 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/7.243, allocations: 182.8 kB / 3.135 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/7.243, allocations: 7.062 kB / 3.135 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000746/7.244, allocations: 43.86 kB / 3.135 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.548e-05/7.244, allocations: 37.55 kB / 3.136 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/7.244, allocations: 17.75 kB / 3.136 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0004019/7.244, allocations: 283 kB / 3.136 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001778/7.246, allocations: 443.6 kB / 3.136 GB, free: 142.3 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],senDenFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002456/7.248, allocations: 1.555 MB / 3.138 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001349/7.25, allocations: 0.5987 MB / 3.138 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/7.25, allocations: 3.688 kB / 3.138 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004026/7.25, allocations: 214.1 kB / 3.139 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/7.252, allocations: 326.3 kB / 3.139 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/7.255, allocations: 1.091 MB / 3.14 GB, free: 141.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007117/7.255, allocations: 1.012 MB / 3.141 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of SimCode: time 1.002e-06/7.255, allocations: 2.781 kB / 3.141 GB, free: 140.9 MB / 0.6982 GB Notification: Performance of Templates: time 0.03591/7.291, allocations: 20.6 MB / 3.161 GB, free: 140.5 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.pipe 2>&1)