Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.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.EnthalpyFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate") translateModel(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000839/0.000839, allocations: 99.62 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.0009075/0.0009075, allocations: 177.3 kB / 15.94 MB, free: 228 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.176/1.176, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001589/0.001589, allocations: 262.2 kB / 291.2 MB, free: 1.98 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.716/0.716, allocations: 144.6 MB / 487 MB, free: 7.203 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 20.58 kB / 0.5683 GB, free: 38.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1258, allocations: 83.08 MB / 0.6494 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.3935/0.5193, allocations: 140.3 MB / 0.7865 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004782/0.5241, allocations: 5.26 MB / 0.7916 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.5244, allocations: 12.62 kB / 0.7916 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005459/0.5249, allocations: 189 kB / 0.7918 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001081/0.526, allocations: 0.5626 MB / 0.7923 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007963/0.5268, allocations: 357.4 kB / 0.7927 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000499/0.5273, allocations: 429 kB / 0.7931 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000359/0.5277, allocations: 217.9 kB / 0.7933 GB, free: 2.113 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008093/0.5285, allocations: 436.7 kB / 0.7937 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.5288, allocations: 198 kB / 0.7939 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.5288, allocations: 12.91 kB / 0.7939 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.5293, allocations: 204.8 kB / 0.7941 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.5294, allocations: 91.38 kB / 0.7942 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.5296, allocations: 85.41 kB / 0.7943 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.53, allocations: 307.8 kB / 0.7946 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.53, allocations: 0 / 0.7946 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.122e-06/0.53, allocations: 3.656 kB / 0.7946 GB, free: 18.05 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.5301, allocations: 0 / 0.7946 GB, free: 18.05 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0007092/0.5308, allocations: 0.5633 MB / 0.7951 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5308, allocations: 9.594 kB / 0.7951 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002871/0.5311, allocations: 64.52 kB / 0.7952 GB, free: 17.57 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.5315, allocations: 296.8 kB / 0.7955 GB, free: 17.35 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.5315, allocations: 22.08 kB / 0.7955 GB, free: 17.35 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.5316, allocations: 25.62 kB / 0.7955 GB, free: 17.35 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.5321, allocations: 322.8 kB / 0.7958 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.5321, allocations: 1.219 kB / 0.7958 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.5321, allocations: 9.688 kB / 0.7958 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.5322, allocations: 6.656 kB / 0.7958 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.5326, allocations: 217.6 kB / 0.796 GB, free: 17.25 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.001515/0.5341, allocations: 1.54 MB / 0.7976 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.5343, allocations: 124.5 kB / 0.7977 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004082/0.5348, allocations: 134.6 kB / 0.7978 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.5348, allocations: 34.97 kB / 0.7978 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=13): time 1.253e-06/0.5348, allocations: 0 / 0.7978 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=13): time 0.0007026/0.5355, allocations: 287.5 kB / 0.7981 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.5355, allocations: 56.8 kB / 0.7982 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.5358, allocations: 317.3 kB / 0.7985 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5359, allocations: 28.95 kB / 0.7985 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.536, allocations: 180.8 kB / 0.7987 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.536, allocations: 45.8 kB / 0.7987 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.536, allocations: 2.5 kB / 0.7987 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5362, allocations: 337.1 kB / 0.799 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.5363, allocations: 66.94 kB / 0.7991 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.5365, allocations: 118.4 kB / 0.7992 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.5367, allocations: 78.98 kB / 0.7993 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.5367, allocations: 1.438 kB / 0.7993 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003965/0.5371, allocations: 228 kB / 0.7995 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.5371, allocations: 6.188 kB / 0.7995 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.5371, allocations: 1.5 kB / 0.7995 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.5371, allocations: 4.547 kB / 0.7995 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.5373, allocations: 39.19 kB / 0.7996 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.5373, allocations: 2.281 kB / 0.7996 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.5375, allocations: 48.16 kB / 0.7996 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.5376, allocations: 10.09 kB / 0.7996 GB, free: 15.1 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 (17): * Single equations (assignments): 17 * 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.0001357/0.5377, allocations: 147.8 kB / 0.7998 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.5378, allocations: 24.38 kB / 0.7998 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004384/0.5382, allocations: 226 kB / 0.8 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.5382, allocations: 4.312 kB / 0.8 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5382, allocations: 1.469 kB / 0.8 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5382, allocations: 0 / 0.8 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009146/0.5391, allocations: 0.6957 MB / 0.8007 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.5392, allocations: 7 kB / 0.8007 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.5393, allocations: 29.25 kB / 0.8007 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.5393, allocations: 6.797 kB / 0.8007 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.5393, allocations: 10.25 kB / 0.8007 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.5393, allocations: 2.188 kB / 0.8007 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5393, allocations: 4.141 kB / 0.8007 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/0.5398, allocations: 426.3 kB / 0.8011 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.5399, allocations: 116.4 kB / 0.8012 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.5399, allocations: 15.59 kB / 0.8013 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.5401, allocations: 17.95 kB / 0.8013 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.5402, allocations: 13.45 kB / 0.8013 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.5402, allocations: 4.906 kB / 0.8013 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002069/0.5404, allocations: 226.7 kB / 0.8015 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5404, allocations: 0.8438 kB / 0.8015 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003621/0.5408, allocations: 73.81 kB / 0.8016 GB, free: 14.02 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 simulation (13): * Single equations (assignments): 13 * 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.0003336/0.5411, allocations: 162.6 kB / 0.8017 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003924/0.5415, allocations: 165 kB / 0.8019 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5415, allocations: 5.156 kB / 0.8019 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.5417, allocations: 86.8 kB / 0.802 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006906/0.5424, allocations: 135.8 kB / 0.8021 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007584/0.5432, allocations: 0.6284 MB / 0.8027 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.5435, allocations: 0.7913 MB / 0.8035 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002141/0.5438, allocations: 68.48 kB / 0.8036 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.912e-05/0.5438, allocations: 26.56 kB / 0.8036 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.5438, allocations: 1.219 kB / 0.8036 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of Templates: time 0.008962/0.5528, allocations: 4.69 MB / 0.8082 GB, free: 12.5 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) Environment - environmentSimulation: