Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.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.Conversions.Examples.To_VolumeFraction,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction") translateModel(BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction") [: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.7545/0.7545, allocations: 141.8 MB / 149.1 MB, free: 13.12 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.00113/0.00113, allocations: 191 kB / 181.9 MB, free: 9.809 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.543/1.543, allocations: 221.3 MB / 436 MB, free: 2.223 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.001089/0.001088, allocations: 95.44 kB / 0.507 GB, free: 10.99 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001861/0.001861, allocations: 278.4 kB / 0.5884 GB, free: 7.816 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.041e-05/1.045e-05, allocations: 2.406 kB / 0.6759 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 82.79 MB / 0.7567 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.828/5.063, allocations: 1.937 GB / 2.694 GB, free: 75.19 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/5.063, allocations: 95.75 kB / 2.694 GB, free: 75.1 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.418/7.481, allocations: 0.6364 GB / 3.331 GB, free: 119.8 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001128/7.481, allocations: 39.33 kB / 3.331 GB, free: 119.8 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: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.003484/7.485, allocations: 1.467 MB / 3.332 GB, free: 119.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/7.485, allocations: 8.531 kB / 3.332 GB, free: 119.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/7.487, allocations: 341.4 kB / 3.332 GB, free: 119.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002939/7.49, allocations: 1.208 MB / 3.334 GB, free: 118.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/7.49, allocations: 33.09 kB / 3.334 GB, free: 118.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/7.49, allocations: 69.94 kB / 3.334 GB, free: 118.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001532/7.492, allocations: 0.8585 MB / 3.335 GB, free: 118.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/7.493, allocations: 1.015 MB / 3.336 GB, free: 118.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/7.493, allocations: 3.719 kB / 3.336 GB, free: 118.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/7.493, allocations: 3.531 kB / 3.336 GB, free: 118.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.524e-05/7.493, allocations: 39.34 kB / 3.336 GB, free: 118.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005972/7.499, allocations: 4.717 MB / 3.34 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009381/7.5, allocations: 0.6409 MB / 3.341 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/7.501, allocations: 362.1 kB / 3.341 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006391/7.501, allocations: 408.7 kB / 3.342 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/7.501, allocations: 41.16 kB / 3.342 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=68): time 3.837e-06/7.501, allocations: 0 / 3.342 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=68): time 0.001976/7.503, allocations: 0.7883 MB / 3.342 GB, free: 115.6 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/7.503, allocations: 113.2 kB / 3.343 GB, free: 115.5 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007265/7.504, allocations: 0.5589 MB / 3.343 GB, free: 115.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.257e-05/7.504, allocations: 28.33 kB / 3.343 GB, free: 115.3 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/7.505, allocations: 426.8 kB / 3.343 GB, free: 115.1 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/7.505, allocations: 235.8 kB / 3.344 GB, free: 115 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/7.505, allocations: 0 / 3.344 GB, free: 115 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.444e-05/7.505, allocations: 331.6 kB / 3.344 GB, free: 114.7 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/7.505, allocations: 261.3 kB / 3.344 GB, free: 114.7 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/7.506, allocations: 495 kB / 3.345 GB, free: 114.4 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007394/7.507, allocations: 431.8 kB / 3.345 GB, free: 114.4 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/7.507, allocations: 3.188 kB / 3.345 GB, free: 114.4 MB / 0.6982 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001431/7.508, allocations: 0.8884 MB / 3.346 GB, free: 114.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003506/7.508, allocations: 1.748 MB / 3.348 GB, free: 112.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/7.508, allocations: 3.219 kB / 3.348 GB, free: 112.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/7.508, allocations: 11.12 kB / 3.348 GB, free: 112.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008785/7.509, allocations: 177.6 kB / 3.348 GB, free: 112.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003424/7.51, allocations: 0.6102 MB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/7.511, allocations: 117 kB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.261e-05/7.511, allocations: 34.27 kB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.385e-06/7.511, allocations: 3 kB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001214/7.512, allocations: 0.7657 MB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/7.512, allocations: 6.031 kB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/7.512, allocations: 7.594 kB / 3.349 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/7.513, allocations: 170.2 kB / 3.35 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/7.513, allocations: 17.3 kB / 3.35 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008919/7.514, allocations: 100.6 kB / 3.35 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/7.514, allocations: 35.64 kB / 3.35 GB, free: 111.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0001932/7.514, allocations: 124.4 kB / 3.35 GB, free: 111.8 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/7.514, allocations: 94.34 kB / 3.35 GB, free: 111.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/7.515, allocations: 0.7982 MB / 3.351 GB, free: 111.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/7.515, allocations: 15.42 kB / 3.351 GB, free: 111.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/7.515, allocations: 0 / 3.351 GB, free: 111.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001035/7.517, allocations: 0.9026 MB / 3.352 GB, free: 111.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/7.52, allocations: 1.985 MB / 3.354 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/7.52, allocations: 3.406 kB / 3.354 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007638/7.521, allocations: 163 kB / 3.354 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/7.521, allocations: 7.781 kB / 3.354 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.803e-05/7.521, allocations: 12.73 kB / 3.354 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000232/7.521, allocations: 0.5974 MB / 3.354 GB, free: 110.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/7.521, allocations: 6.656 kB / 3.354 GB, free: 110.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001683/7.523, allocations: 1.403 MB / 3.356 GB, free: 109.8 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000431/7.523, allocations: 247.5 kB / 3.356 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/7.523, allocations: 10.88 kB / 3.356 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/7.524, allocations: 70.55 kB / 3.356 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/7.524, allocations: 47.17 kB / 3.356 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/7.524, allocations: 31.2 kB / 3.356 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005066/7.525, allocations: 432.8 kB / 3.356 GB, free: 109.6 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001928/7.527, allocations: 0.6807 MB / 3.357 GB, free: 109.5 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (limPID.I.y,vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],senTraSubPeo.C,senTraSubFre.C) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 67 * 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.002533/7.529, allocations: 2.096 MB / 3.359 GB, free: 109 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001829/7.531, allocations: 1.068 MB / 3.36 GB, free: 109 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/7.531, allocations: 2.438 kB / 3.36 GB, free: 109 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004484/7.531, allocations: 338.4 kB / 3.361 GB, free: 109 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/7.533, allocations: 418.2 kB / 3.361 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/7.537, allocations: 1.755 MB / 3.363 GB, free: 108.5 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008344/7.538, allocations: 1.281 MB / 3.364 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of SimCode: time 1.133e-06/7.538, allocations: 0 / 3.364 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of Templates: time 0.05007/7.588, allocations: 29.79 MB / 3.393 GB, free: 106.9 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe 2>&1)