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: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Density,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Density,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Density",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.7182/0.7182, allocations: 141.8 MB / 149.1 MB, free: 3.062 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.00123/0.00123, allocations: 180.3 kB / 182 MB, free: 14.9 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.284/1.284, allocations: 221.3 MB / 436 MB, free: 7.992 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.001148/0.001148, allocations: 98.19 kB / 0.507 GB, free: 24.43 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001787/0.001786, allocations: 278.5 kB / 0.5885 GB, free: 11.15 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1826/0.1844, allocations: 89.66 MB / 0.676 GB, free: 1.414 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.5772, allocations: 82.75 MB / 0.7568 GB, free: 111.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.656/4.233, allocations: 1.885 GB / 2.642 GB, free: 169.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/4.233, allocations: 100.4 kB / 2.642 GB, free: 169.6 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 1.634/5.867, allocations: 490.5 MB / 3.121 GB, free: 151.5 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/5.867, allocations: 11.38 kB / 3.121 GB, free: 151.5 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002095/5.869, allocations: 287.4 kB / 3.121 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/5.87, allocations: 0.6305 MB / 3.122 GB, free: 151.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/5.87, allocations: 18.41 kB / 3.122 GB, free: 151.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.452e-05/5.87, allocations: 38.66 kB / 3.122 GB, free: 151.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007926/5.871, allocations: 495.2 kB / 3.122 GB, free: 151.2 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008015/5.872, allocations: 0.5597 MB / 3.123 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/5.872, allocations: 7.594 kB / 3.123 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-05/5.872, allocations: 0 / 3.123 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/5.872, allocations: 15.84 kB / 3.123 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/5.875, allocations: 2.466 MB / 3.125 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/5.876, allocations: 381.9 kB / 3.126 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/5.876, allocations: 238.8 kB / 3.126 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007077/5.877, allocations: 479.8 kB / 3.126 GB, free: 149.4 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/5.877, allocations: 43.44 kB / 3.126 GB, free: 149.3 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=41): time 3.076e-06/5.877, allocations: 0 / 3.126 GB, free: 149.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=41): time 0.001441/5.878, allocations: 484 kB / 3.127 GB, free: 149.2 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/5.878, allocations: 57.94 kB / 3.127 GB, free: 149.2 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/5.879, allocations: 363.8 kB / 3.127 GB, free: 149.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/5.879, allocations: 29.3 kB / 3.127 GB, free: 149 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/5.879, allocations: 240 kB / 3.128 GB, free: 148.9 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/5.879, allocations: 149.8 kB / 3.128 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.939e-05/5.879, allocations: 0 / 3.128 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001174/5.879, allocations: 356.8 kB / 3.128 GB, free: 148.5 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/5.879, allocations: 145.6 kB / 3.128 GB, free: 148.5 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/5.88, allocations: 261.6 kB / 3.128 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/5.88, allocations: 217.5 kB / 3.129 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/5.88, allocations: 0 / 3.129 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007404/5.881, allocations: 489.1 kB / 3.129 GB, free: 148.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/5.881, allocations: 0.8806 MB / 3.13 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/5.881, allocations: 3.406 kB / 3.13 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/5.881, allocations: 3.719 kB / 3.13 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006251/5.882, allocations: 109.5 kB / 3.13 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003009/5.882, allocations: 0.6094 MB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/5.882, allocations: 64.53 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/5.883, allocations: 20.88 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/5.883, allocations: 6.844 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006035/5.883, allocations: 399.8 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/5.883, allocations: 0 / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.071e-06/5.883, allocations: 7.594 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/5.884, allocations: 102.5 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/5.884, allocations: 7.156 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/5.884, allocations: 67.08 kB / 3.131 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/5.884, allocations: 20.44 kB / 3.131 GB, free: 146.8 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.0001016/5.884, allocations: 116 kB / 3.131 GB, free: 146.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.151e-05/5.884, allocations: 60.39 kB / 3.131 GB, free: 146.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007024/5.885, allocations: 455.8 kB / 3.132 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/5.885, allocations: 3.812 kB / 3.132 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/5.885, allocations: 11.47 kB / 3.132 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005882/5.886, allocations: 0.6873 MB / 3.133 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/5.887, allocations: 1.201 MB / 3.134 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/5.887, allocations: 0 / 3.134 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000555/5.888, allocations: 113.8 kB / 3.134 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/5.888, allocations: 7.047 kB / 3.134 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/5.888, allocations: 6.812 kB / 3.134 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002308/5.888, allocations: 0.5977 MB / 3.134 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/5.888, allocations: 6.75 kB / 3.134 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009255/5.889, allocations: 0.8993 MB / 3.135 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001381/5.891, allocations: 1.589 MB / 3.137 GB, free: 144.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/5.891, allocations: 179.1 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/5.891, allocations: 6.688 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/5.891, allocations: 40.88 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/5.891, allocations: 33.67 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/5.892, allocations: 17.34 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0002926/5.892, allocations: 280.7 kB / 3.137 GB, free: 143.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002885/5.895, allocations: 0.7556 MB / 3.138 GB, free: 143.8 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.001803/5.897, allocations: 1.565 MB / 3.14 GB, free: 143.5 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001154/5.898, allocations: 0.6105 MB / 3.14 GB, free: 143.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/5.898, allocations: 0 / 3.14 GB, free: 143.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002977/5.898, allocations: 209.8 kB / 3.141 GB, free: 143.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/5.899, allocations: 313.9 kB / 3.141 GB, free: 143.4 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/5.901, allocations: 1.095 MB / 3.142 GB, free: 143.1 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005048/5.902, allocations: 1.022 MB / 3.143 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of SimCode: time 3.61e-07/5.902, allocations: 3.938 kB / 3.143 GB, free: 142.4 MB / 0.6982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Density_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Density.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Density.pipe 2>&1)