Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.151/2.151, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 184.6 kB / 487 MB, free: 5.375 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 221.3 MB / 0.7819 GB, free: 1.371 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009888/0.0009887, allocations: 87.52 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5729/0.5739, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.8235, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.43/5.254, allocations: 1.925 GB / 3.13 GB, free: 398.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/5.254, allocations: 91.83 kB / 3.13 GB, free: 398.5 MB / 1.151 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.537/6.791, allocations: 492.4 MB / 3.611 GB, free: 301.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/6.791, allocations: 15.45 kB / 3.611 GB, free: 301.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/6.793, allocations: 291.7 kB / 3.611 GB, free: 301.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/6.795, allocations: 0.642 MB / 3.612 GB, free: 300.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/6.795, allocations: 14.28 kB / 3.612 GB, free: 300.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/6.795, allocations: 33.19 kB / 3.612 GB, free: 300.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00103/6.796, allocations: 0.4891 MB / 3.612 GB, free: 300.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009844/6.797, allocations: 0.5606 MB / 3.613 GB, free: 300.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/6.797, allocations: 0 / 3.613 GB, free: 300.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.719e-05/6.797, allocations: 7.594 kB / 3.613 GB, free: 300.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.844e-05/6.797, allocations: 15.56 kB / 3.613 GB, free: 300.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/6.801, allocations: 2.556 MB / 3.616 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003583/6.801, allocations: 265.2 kB / 3.616 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/6.801, allocations: 238.2 kB / 3.616 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005839/6.802, allocations: 479.9 kB / 3.617 GB, free: 298.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/6.802, allocations: 41.86 kB / 3.617 GB, free: 298.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/6.802, allocations: 3.844 kB / 3.617 GB, free: 298.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=41): time 0.00139/6.803, allocations: 482.6 kB / 3.617 GB, free: 298.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.056e-05/6.803, allocations: 54.06 kB / 3.617 GB, free: 298.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/6.804, allocations: 363.3 kB / 3.617 GB, free: 298.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/6.804, allocations: 27.02 kB / 3.617 GB, free: 298.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/6.804, allocations: 258.3 kB / 3.618 GB, free: 298.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/6.804, allocations: 133.2 kB / 3.618 GB, free: 298.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/6.804, allocations: 0 / 3.618 GB, free: 298.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001013/6.804, allocations: 368.4 kB / 3.618 GB, free: 298.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/6.804, allocations: 137.2 kB / 3.618 GB, free: 298.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/6.805, allocations: 264.1 kB / 3.619 GB, free: 298 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/6.805, allocations: 211.2 kB / 3.619 GB, free: 298 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/6.805, allocations: 3.938 kB / 3.619 GB, free: 298 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007443/6.806, allocations: 487 kB / 3.619 GB, free: 297.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002066/6.806, allocations: 0.8767 MB / 3.62 GB, free: 297 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/6.806, allocations: 3.5 kB / 3.62 GB, free: 297 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/6.806, allocations: 7.875 kB / 3.62 GB, free: 297 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006564/6.807, allocations: 111.6 kB / 3.62 GB, free: 297 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003183/6.807, allocations: 0.6039 MB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006921/6.808, allocations: 76.39 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/6.808, allocations: 21.5 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/6.808, allocations: 3.906 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006454/6.809, allocations: 403 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/6.809, allocations: 0 / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.911e-06/6.809, allocations: 7.5 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/6.809, allocations: 104.3 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/6.809, allocations: 7.625 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/6.81, allocations: 64.78 kB / 3.621 GB, free: 296.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/6.81, allocations: 25.64 kB / 3.621 GB, free: 296.4 MB / 1.151 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.000126/6.81, allocations: 117.4 kB / 3.622 GB, free: 296.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/6.81, allocations: 54.38 kB / 3.622 GB, free: 296.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007497/6.811, allocations: 455.2 kB / 3.622 GB, free: 296.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/6.811, allocations: 7.188 kB / 3.622 GB, free: 296.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/6.811, allocations: 0 / 3.622 GB, free: 296.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005904/6.811, allocations: 0.6824 MB / 3.623 GB, free: 295.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/6.813, allocations: 1.213 MB / 3.624 GB, free: 295.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/6.813, allocations: 3.344 kB / 3.624 GB, free: 295.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005587/6.814, allocations: 119 kB / 3.624 GB, free: 295.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/6.814, allocations: 2.688 kB / 3.624 GB, free: 295.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/6.814, allocations: 9 kB / 3.624 GB, free: 295.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002089/6.814, allocations: 0.6004 MB / 3.625 GB, free: 294.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/6.814, allocations: 4.656 kB / 3.625 GB, free: 294.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009592/6.815, allocations: 0.8766 MB / 3.625 GB, free: 294.4 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001584/6.817, allocations: 1.552 MB / 3.627 GB, free: 293.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/6.817, allocations: 177.6 kB / 3.627 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/6.817, allocations: 7.188 kB / 3.627 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/6.818, allocations: 44.83 kB / 3.627 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/6.818, allocations: 25.34 kB / 3.627 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/6.818, allocations: 21.33 kB / 3.627 GB, free: 293.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0002998/6.818, allocations: 285.3 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003185/6.821, allocations: 0.7603 MB / 3.628 GB, free: 293.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,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.002294/6.824, allocations: 1.575 MB / 3.63 GB, free: 292.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00148/6.825, allocations: 0.6054 MB / 3.63 GB, free: 292.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/6.825, allocations: 3.406 kB / 3.63 GB, free: 292.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003839/6.826, allocations: 205.2 kB / 3.631 GB, free: 292.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/6.827, allocations: 310.9 kB / 3.631 GB, free: 292.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/6.831, allocations: 1.097 MB / 3.632 GB, free: 292 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009171/6.832, allocations: 1.04 MB / 3.633 GB, free: 291.3 MB / 1.151 GB Notification: Performance of SimCode: time 5.91e-07/6.832, allocations: 0 / 3.633 GB, free: 291.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_Density_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_Density.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1)