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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008265/0.0008265, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008595/0.0008596, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.157/1.157, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001641/0.001641, allocations: 266.8 kB / 291.3 MB, free: 1.996 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7328/0.7328, allocations: 144.6 MB / 487 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004071/0.0004073, allocations: 14.69 kB / 0.5683 GB, free: 38.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1232, allocations: 83.08 MB / 0.6494 GB, free: 3.594 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate): time 0.4002/0.5234, allocations: 140.1 MB / 0.7863 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002041/0.5255, allocations: 1.574 MB / 0.7878 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.5256, allocations: 17.5 kB / 0.7878 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005082/0.5262, allocations: 172.9 kB / 0.788 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009399/0.5271, allocations: 0.5169 MB / 0.7885 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009817/0.5281, allocations: 489 kB / 0.789 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004454/0.5286, allocations: 433.2 kB / 0.7894 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003154/0.5289, allocations: 188.4 kB / 0.7896 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000597/0.5295, allocations: 332.3 kB / 0.7899 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.5297, allocations: 150.9 kB / 0.79 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.5297, allocations: 15.84 kB / 0.79 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007132/0.5304, allocations: 423.6 kB / 0.7904 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.5305, allocations: 93.81 kB / 0.7905 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.773e-05/0.5306, allocations: 86.2 kB / 0.7906 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.5312, allocations: 396.6 kB / 0.791 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.5312, allocations: 0 / 0.791 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5312, allocations: 0.7969 kB / 0.791 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.5312, allocations: 1 kB / 0.791 GB, free: 2.133 MB / 0.5606 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.0008246/0.532, allocations: 0.5888 MB / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.5321, allocations: 9.219 kB / 0.7916 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.5332, allocations: 159.8 kB / 0.7917 GB, free: 17.64 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.5336, allocations: 300.1 kB / 0.792 GB, free: 17.42 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.5336, allocations: 16.44 kB / 0.792 GB, free: 17.42 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.5337, allocations: 25.31 kB / 0.7921 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.5342, allocations: 273.4 kB / 0.7923 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.5342, allocations: 1.406 kB / 0.7923 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.5342, allocations: 12.67 kB / 0.7923 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.5342, allocations: 5.531 kB / 0.7923 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.5347, allocations: 207.3 kB / 0.7925 GB, free: 17.33 MB / 0.5762 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.536, allocations: 1.216 MB / 0.7937 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.5363, allocations: 144.6 kB / 0.7939 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003881/0.5366, allocations: 137.9 kB / 0.794 GB, free: 16.37 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.5367, allocations: 32.61 kB / 0.794 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.5367, allocations: 3.984 kB / 0.794 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0007172/0.5374, allocations: 299.7 kB / 0.7943 GB, free: 16.27 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.5374, allocations: 53.03 kB / 0.7944 GB, free: 16.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.5377, allocations: 317.5 kB / 0.7947 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.5378, allocations: 29.73 kB / 0.7947 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.5379, allocations: 180.4 kB / 0.7949 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.5379, allocations: 55.12 kB / 0.7949 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-06/0.5379, allocations: 4.625 kB / 0.7949 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.538, allocations: 336.6 kB / 0.7952 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.5382, allocations: 72.47 kB / 0.7953 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.5384, allocations: 125.8 kB / 0.7954 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.5386, allocations: 87.39 kB / 0.7955 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5386, allocations: 0 / 0.7955 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004532/0.539, allocations: 259.5 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.5391, allocations: 7.562 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.5391, allocations: 1.562 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.5391, allocations: 2.562 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.5393, allocations: 45.27 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.5393, allocations: 3.062 kB / 0.7958 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.5395, allocations: 44.19 kB / 0.7959 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.5396, allocations: 7.156 kB / 0.7959 GB, free: 15.48 MB / 0.5762 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 () * Number of clocked 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 0.0001591/0.5398, allocations: 153.7 kB / 0.796 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.5398, allocations: 29.27 kB / 0.796 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004623/0.5403, allocations: 241.4 kB / 0.7963 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5403, allocations: 2.469 kB / 0.7963 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5403, allocations: 0.6875 kB / 0.7963 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.5403, allocations: 0 / 0.7963 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.5413, allocations: 0.688 MB / 0.7969 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.5413, allocations: 4.422 kB / 0.7969 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.5415, allocations: 39.91 kB / 0.797 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.5415, allocations: 2.25 kB / 0.797 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.5416, allocations: 7.625 kB / 0.797 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.5416, allocations: 2.5 kB / 0.797 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5416, allocations: 7.281 kB / 0.797 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006705/0.5422, allocations: 0.5173 MB / 0.7975 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.5424, allocations: 125.5 kB / 0.7976 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.5424, allocations: 7.375 kB / 0.7976 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.5426, allocations: 18.81 kB / 0.7977 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.5427, allocations: 18.73 kB / 0.7977 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.5427, allocations: 5.562 kB / 0.7977 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002105/0.5429, allocations: 221.9 kB / 0.7979 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5429, allocations: 8.219 kB / 0.7979 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003561/0.5433, allocations: 71.31 kB / 0.798 GB, free: 14.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0003047/0.5436, allocations: 169.7 kB / 0.7981 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003945/0.544, allocations: 181.7 kB / 0.7983 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.544, allocations: 0 / 0.7983 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.5442, allocations: 101 kB / 0.7984 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.5449, allocations: 149.3 kB / 0.7985 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007669/0.5457, allocations: 0.7062 MB / 0.7992 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.546, allocations: 0.7914 MB / 0.8 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001805/0.5462, allocations: 64.92 kB / 0.8001 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.5462, allocations: 24.19 kB / 0.8001 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of SimCode: time 2.61e-07/0.5462, allocations: 0 / 0.8001 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of Templates: time 0.008662/0.5549, allocations: 5.272 MB / 0.8052 GB, free: 12.79 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: