Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.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.Velocity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity") translateModel(BuildingSystems.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity") [: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.7863/0.7863, allocations: 141.8 MB / 149.1 MB, free: 4.566 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.001048/0.001048, allocations: 173.4 kB / 181.9 MB, free: 228 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.42/1.42, allocations: 221.3 MB / 436 MB, free: 9.344 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.00105/0.00105, allocations: 99.42 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.002306/0.002306, allocations: 285.6 kB / 0.5884 GB, free: 12.37 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.333e-05/1.336e-05, allocations: 4 kB / 0.6759 GB, free: 2.738 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.4607, allocations: 82.77 MB / 0.7567 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.056/4.517, allocations: 1.866 GB / 2.623 GB, free: 214.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/4.517, allocations: 85.36 kB / 2.623 GB, free: 214.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.883/5.4, allocations: 246.4 MB / 2.863 GB, free: 201.6 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 3.912e-05/5.401, allocations: 12.28 kB / 2.863 GB, free: 201.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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001331/5.402, allocations: 0.6382 MB / 2.864 GB, free: 201.2 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/5.402, allocations: 9.688 kB / 2.864 GB, free: 201.2 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/5.403, allocations: 169.2 kB / 2.864 GB, free: 201.1 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000706/5.404, allocations: 347 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/5.404, allocations: 10.91 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.059e-05/5.404, allocations: 15.59 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004387/5.405, allocations: 208 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004686/5.405, allocations: 259.1 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/5.405, allocations: 0 / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/5.405, allocations: 5.406 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/5.405, allocations: 7.656 kB / 2.865 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/5.407, allocations: 1.122 MB / 2.866 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/5.407, allocations: 219.6 kB / 2.866 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/5.408, allocations: 104.4 kB / 2.866 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005775/5.408, allocations: 479.7 kB / 2.867 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/5.408, allocations: 40.5 kB / 2.867 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/5.408, allocations: 0 / 2.867 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=21): time 0.001058/5.409, allocations: 263.5 kB / 2.867 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/5.409, allocations: 59.19 kB / 2.867 GB, free: 199.6 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/5.41, allocations: 204.2 kB / 2.867 GB, free: 199.5 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/5.41, allocations: 28.52 kB / 2.868 GB, free: 199.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 9.355e-05/5.41, allocations: 146.8 kB / 2.868 GB, free: 199.4 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.261e-05/5.41, allocations: 72.36 kB / 2.868 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-06/5.41, allocations: 0 / 2.868 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.7e-05/5.41, allocations: 336 kB / 2.868 GB, free: 199 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.934e-05/5.41, allocations: 46.27 kB / 2.868 GB, free: 199 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/5.41, allocations: 119.1 kB / 2.868 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/5.41, allocations: 99.69 kB / 2.868 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/5.41, allocations: 0 / 2.868 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004566/5.411, allocations: 235.8 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/5.411, allocations: 3.125 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.088e-06/5.411, allocations: 3.062 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/5.411, allocations: 0 / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/5.411, allocations: 52.75 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/5.411, allocations: 10.08 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002464/5.411, allocations: 32.92 kB / 2.869 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/5.411, allocations: 7.531 kB / 2.869 GB, free: 198.9 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 (24): * Single equations (assignments): 24 * 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 8.995e-05/5.412, allocations: 106.4 kB / 2.869 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.27e-05/5.412, allocations: 30.75 kB / 2.869 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004836/5.412, allocations: 238.5 kB / 2.869 GB, free: 198.7 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/5.412, allocations: 0 / 2.869 GB, free: 198.7 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/5.412, allocations: 0 / 2.869 GB, free: 198.7 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/5.412, allocations: 0 / 2.869 GB, free: 198.7 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/5.413, allocations: 0.7166 MB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/5.413, allocations: 3.094 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/5.413, allocations: 44.14 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/5.413, allocations: 7.25 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/5.413, allocations: 14.75 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/5.413, allocations: 7.125 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/5.413, allocations: 10.62 kB / 2.87 GB, free: 198.4 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006301/5.414, allocations: 0.584 MB / 2.87 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/5.414, allocations: 118.9 kB / 2.87 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/5.414, allocations: 7.031 kB / 2.87 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/5.414, allocations: 21.28 kB / 2.87 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/5.415, allocations: 17.83 kB / 2.87 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/5.415, allocations: 12.31 kB / 2.87 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001139/5.415, allocations: 165.7 kB / 2.871 GB, free: 197.8 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0006502/5.415, allocations: 152.4 kB / 2.871 GB, free: 197.8 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 (21): * Single equations (assignments): 21 * 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.002045/5.417, allocations: 1.196 MB / 2.872 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003291/5.418, allocations: 145.7 kB / 2.872 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/5.418, allocations: 0 / 2.872 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001494/5.418, allocations: 85.89 kB / 2.872 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007791/5.419, allocations: 114.5 kB / 2.872 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/5.42, allocations: 461.1 kB / 2.873 GB, free: 197.3 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/5.42, allocations: 0.8234 MB / 2.874 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of SimCode: time 6.41e-07/5.42, allocations: 0 / 2.874 GB, free: 196.6 MB / 0.6982 GB Notification: Performance of Templates: time 0.02038/5.441, allocations: 10.41 MB / 2.884 GB, free: 196.3 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe 2>&1)