Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.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.VolumeFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate") translateModel(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate") [: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.7867/0.7867, allocations: 141.8 MB / 149.1 MB, free: 2.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.001206/0.001206, allocations: 177.3 kB / 182 MB, free: 14.09 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.469/1.469, allocations: 221.3 MB / 436.1 MB, free: 7.047 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.001293/0.001293, allocations: 102.4 kB / 0.507 GB, free: 24.44 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 286.2 kB / 0.5885 GB, free: 10.32 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.167e-06/9.397e-06, allocations: 4 kB / 0.6759 GB, free: 0.6836 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4724/0.4725, allocations: 82.77 MB / 0.7567 GB, free: 110.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.946/4.419, allocations: 1.866 GB / 2.623 GB, free: 191.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/4.419, allocations: 83.95 kB / 2.623 GB, free: 191.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.851/5.27, allocations: 246.3 MB / 2.863 GB, free: 199.2 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 3.393e-05/5.27, allocations: 7.625 kB / 2.863 GB, free: 199.2 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001368/5.271, allocations: 0.6319 MB / 2.864 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/5.271, allocations: 12.31 kB / 2.864 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/5.273, allocations: 167.5 kB / 2.864 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/5.274, allocations: 343 kB / 2.864 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/5.274, allocations: 7.375 kB / 2.864 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/5.274, allocations: 15.19 kB / 2.864 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003711/5.274, allocations: 204 kB / 2.865 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/5.274, allocations: 254.2 kB / 2.865 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/5.274, allocations: 3.844 kB / 2.865 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/5.275, allocations: 7.125 kB / 2.865 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/5.275, allocations: 3.75 kB / 2.865 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/5.276, allocations: 1.083 MB / 2.866 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/5.276, allocations: 214.2 kB / 2.866 GB, free: 197.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/5.277, allocations: 109.5 kB / 2.866 GB, free: 197.8 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005718/5.277, allocations: 476.1 kB / 2.867 GB, free: 197.4 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/5.277, allocations: 34.47 kB / 2.867 GB, free: 197.3 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=19): time 2.665e-06/5.277, allocations: 0 / 2.867 GB, free: 197.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=19): time 0.0009526/5.278, allocations: 272 kB / 2.867 GB, free: 197.3 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/5.278, allocations: 51.41 kB / 2.867 GB, free: 197.2 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/5.278, allocations: 190.4 kB / 2.867 GB, free: 197.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/5.278, allocations: 25.7 kB / 2.867 GB, free: 197.1 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/5.278, allocations: 140.2 kB / 2.867 GB, free: 197 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/5.279, allocations: 70.72 kB / 2.867 GB, free: 196.9 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.697e-06/5.279, allocations: 3.5 kB / 2.867 GB, free: 196.9 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.715e-05/5.279, allocations: 332.1 kB / 2.868 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.456e-05/5.279, allocations: 44.5 kB / 2.868 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/5.279, allocations: 102.7 kB / 2.868 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/5.279, allocations: 109.8 kB / 2.868 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/5.279, allocations: 0 / 2.868 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004113/5.28, allocations: 214 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/5.28, allocations: 10.16 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/5.28, allocations: 5.875 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/5.28, allocations: 10.95 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/5.28, allocations: 43.08 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/5.28, allocations: 5.094 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/5.28, allocations: 30.5 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/5.28, allocations: 13.08 kB / 2.868 GB, free: 196.5 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.001e-05/5.28, allocations: 111.2 kB / 2.868 GB, free: 196.4 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/5.28, allocations: 21.94 kB / 2.868 GB, free: 196.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/5.281, allocations: 229.6 kB / 2.869 GB, free: 196.4 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/5.281, allocations: 0 / 2.869 GB, free: 196.4 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/5.281, allocations: 3.906 kB / 2.869 GB, free: 196.3 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/5.281, allocations: 3.719 kB / 2.869 GB, free: 196.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/5.282, allocations: 0.6947 MB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/5.282, allocations: 8 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/5.282, allocations: 43.22 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/5.282, allocations: 11.02 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/5.282, allocations: 6.969 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/5.282, allocations: 7.469 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/5.282, allocations: 8.031 kB / 2.869 GB, free: 196 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006946/5.283, allocations: 0.5712 MB / 2.87 GB, free: 195.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/5.283, allocations: 118.5 kB / 2.87 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/5.283, allocations: 6.594 kB / 2.87 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/5.283, allocations: 18.5 kB / 2.87 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/5.283, allocations: 23.02 kB / 2.87 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/5.283, allocations: 11.33 kB / 2.87 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001408/5.284, allocations: 152.1 kB / 2.87 GB, free: 195.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0007214/5.284, allocations: 145.5 kB / 2.87 GB, free: 195.4 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001842/5.286, allocations: 1.194 MB / 2.872 GB, free: 195.1 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003038/5.286, allocations: 138.3 kB / 2.872 GB, free: 195.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/5.286, allocations: 0 / 2.872 GB, free: 195.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/5.287, allocations: 76.95 kB / 2.872 GB, free: 195.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007127/5.287, allocations: 119.1 kB / 2.872 GB, free: 195.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009199/5.288, allocations: 440.4 kB / 2.872 GB, free: 194.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/5.289, allocations: 0.8147 MB / 2.873 GB, free: 194.2 MB / 0.6982 GB Notification: Performance of SimCode: time 2.91e-07/5.289, allocations: 0 / 2.873 GB, free: 194.2 MB / 0.6982 GB Notification: Performance of Templates: time 0.01903/5.308, allocations: 10.33 MB / 2.883 GB, free: 193.4 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1)