Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.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.MassFraction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_MassFraction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.MassFraction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_MassFraction",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.6941/0.6941, allocations: 141.8 MB / 149.1 MB, free: 4.488 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.001017/0.001017, allocations: 184.3 kB / 181.9 MB, free: 144 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.24/1.24, allocations: 221.3 MB / 436 MB, free: 9.332 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.000879/0.0008789, allocations: 97.2 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001742/0.001742, allocations: 277.5 kB / 0.5884 GB, free: 12.31 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1817/0.1835, allocations: 89.65 MB / 0.676 GB, free: 2.582 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.5378, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.245/3.783, allocations: 1.888 GB / 2.645 GB, free: 187.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/3.783, allocations: 92.44 kB / 2.645 GB, free: 187.4 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 1.601/5.384, allocations: 488.3 MB / 3.122 GB, free: 150.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/5.384, allocations: 11.75 kB / 3.122 GB, free: 150.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/5.385, allocations: 214.3 kB / 3.122 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/5.387, allocations: 0.9083 MB / 3.123 GB, free: 150.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/5.387, allocations: 15.16 kB / 3.123 GB, free: 150.1 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-05/5.387, allocations: 32.81 kB / 3.123 GB, free: 150.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007561/5.388, allocations: 449.2 kB / 3.124 GB, free: 150.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008155/5.389, allocations: 0.5138 MB / 3.124 GB, free: 150 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/5.389, allocations: 3.062 kB / 3.124 GB, free: 150 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/5.389, allocations: 7.75 kB / 3.124 GB, free: 150 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/5.389, allocations: 27.16 kB / 3.124 GB, free: 150 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/5.392, allocations: 2.355 MB / 3.127 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/5.392, allocations: 321.4 kB / 3.127 GB, free: 148.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/5.392, allocations: 206.8 kB / 3.127 GB, free: 148.7 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005029/5.393, allocations: 306.1 kB / 3.127 GB, free: 148.5 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/5.393, allocations: 39.16 kB / 3.127 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=36): time 2.435e-06/5.393, allocations: 0 / 3.127 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of matching and sorting (n=36): time 0.001138/5.394, allocations: 445 kB / 3.128 GB, free: 148.4 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/5.394, allocations: 55.38 kB / 3.128 GB, free: 148.3 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/5.395, allocations: 362.7 kB / 3.128 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/5.395, allocations: 29.39 kB / 3.128 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/5.395, allocations: 250.5 kB / 3.129 GB, free: 148 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/5.395, allocations: 125.8 kB / 3.129 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/5.395, allocations: 0 / 3.129 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001165/5.395, allocations: 358.6 kB / 3.129 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/5.395, allocations: 137.5 kB / 3.129 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/5.396, allocations: 274.9 kB / 3.129 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/5.396, allocations: 213.9 kB / 3.13 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/5.396, allocations: 0 / 3.13 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007001/5.397, allocations: 480.7 kB / 3.13 GB, free: 147.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002588/5.397, allocations: 0.8787 MB / 3.131 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/5.397, allocations: 0 / 3.131 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/5.397, allocations: 7.125 kB / 3.131 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005893/5.398, allocations: 97.53 kB / 3.131 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003451/5.398, allocations: 0.6042 MB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006231/5.399, allocations: 59.25 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.369e-05/5.399, allocations: 20.77 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/5.399, allocations: 3.75 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006262/5.399, allocations: 388.6 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/5.399, allocations: 3.781 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.572e-06/5.399, allocations: 3.562 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/5.4, allocations: 89.28 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/5.4, allocations: 4.438 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/5.4, allocations: 51.34 kB / 3.132 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/5.4, allocations: 18.62 kB / 3.132 GB, free: 145.9 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 (49): * Single equations (assignments): 48 * 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.0001233/5.4, allocations: 119.4 kB / 3.132 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/5.4, allocations: 50.34 kB / 3.132 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007049/5.401, allocations: 442.6 kB / 3.133 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/5.401, allocations: 6.75 kB / 3.133 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/5.401, allocations: 0 / 3.133 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005227/5.402, allocations: 0.6468 MB / 3.133 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/5.403, allocations: 1.135 MB / 3.135 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/5.403, allocations: 3.656 kB / 3.135 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/5.404, allocations: 99.98 kB / 3.135 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/5.404, allocations: 0 / 3.135 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/5.404, allocations: 10.38 kB / 3.135 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002056/5.404, allocations: 0.6015 MB / 3.135 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/5.404, allocations: 0 / 3.135 GB, free: 144.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008223/5.405, allocations: 0.8146 MB / 3.136 GB, free: 144 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001376/5.406, allocations: 1.461 MB / 3.137 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/5.407, allocations: 179.7 kB / 3.138 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/5.407, allocations: 3.875 kB / 3.138 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/5.407, allocations: 33.38 kB / 3.138 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/5.407, allocations: 26.98 kB / 3.138 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/5.407, allocations: 17.05 kB / 3.138 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0002939/5.408, allocations: 279.9 kB / 3.138 GB, free: 143.1 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003167/5.411, allocations: 0.7587 MB / 3.139 GB, free: 143.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],senMasFra1.X) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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.002146/5.413, allocations: 1.561 MB / 3.14 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00108/5.414, allocations: 0.5732 MB / 3.141 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/5.414, allocations: 0 / 3.141 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002764/5.414, allocations: 182.4 kB / 3.141 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/5.416, allocations: 287.7 kB / 3.141 GB, free: 142.7 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/5.418, allocations: 1.054 MB / 3.142 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/5.418, allocations: 1.022 MB / 3.143 GB, free: 141.7 MB / 0.6982 GB Notification: Performance of SimCode: time 3.81e-07/5.418, allocations: 0 / 3.143 GB, free: 141.7 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_MassFraction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_MassFraction.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.MassFraction.pipe 2>&1)