Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.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.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterProperties") translateModel(BuildingSystems.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 104.3 kB / 16.41 MB, free: 6.449 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.001275/0.001275, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002088/0.002088, allocations: 284 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9121/0.9121, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 99.84 kB / 0.6821 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4207, allocations: 86.97 MB / 0.7671 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.005353/0.4261, allocations: 4.721 MB / 0.7717 GB, free: 15.19 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002543/0.4286, allocations: 2.695 MB / 0.7743 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.487e-05/0.4287, allocations: 3.938 kB / 0.7743 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.4289, allocations: 47.69 kB / 0.7744 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.4292, allocations: 91.42 kB / 0.7745 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009521/0.4301, allocations: 0.4921 MB / 0.7749 GB, free: 11.85 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.4304, allocations: 239.9 kB / 0.7752 GB, free: 11.61 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.975e-05/0.4304, allocations: 13.56 kB / 0.7752 GB, free: 11.6 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.4306, allocations: 127.5 kB / 0.7753 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.4308, allocations: 83.67 kB / 0.7754 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.4308, allocations: 11.94 kB / 0.7754 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005776/0.4314, allocations: 367.3 kB / 0.7757 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.4315, allocations: 39.89 kB / 0.7758 GB, free: 10.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.673e-05/0.4315, allocations: 75.67 kB / 0.7759 GB, free: 10.91 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.432, allocations: 353.4 kB / 0.7762 GB, free: 10.57 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.4321, allocations: 7.938 kB / 0.7762 GB, free: 10.56 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.333e-06/0.4321, allocations: 0 / 0.7762 GB, free: 10.56 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.4321, allocations: 0 / 0.7762 GB, free: 10.56 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006823/0.4328, allocations: 0.507 MB / 0.7767 GB, free: 10 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4328, allocations: 12.03 kB / 0.7767 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.433, allocations: 20.75 kB / 0.7767 GB, free: 9.969 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.4332, allocations: 216 kB / 0.7769 GB, free: 9.719 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.4333, allocations: 12.7 kB / 0.7769 GB, free: 9.707 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.4333, allocations: 16.38 kB / 0.777 GB, free: 9.691 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.4337, allocations: 248.1 kB / 0.7772 GB, free: 9.43 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4337, allocations: 3.938 kB / 0.7772 GB, free: 9.426 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.4337, allocations: 12 kB / 0.7772 GB, free: 9.414 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.442e-05/0.4337, allocations: 7.984 kB / 0.7772 GB, free: 9.406 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004537/0.4342, allocations: 427.5 kB / 0.7776 GB, free: 8.988 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.4353, allocations: 0.945 MB / 0.7785 GB, free: 7.953 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.4355, allocations: 162.8 kB / 0.7787 GB, free: 7.781 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.665e-05/0.4357, allocations: 68.81 kB / 0.7788 GB, free: 7.711 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00122/0.4369, allocations: 1.829 MB / 0.7806 GB, free: 5.523 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.4369, allocations: 34.56 kB / 0.7806 GB, free: 5.48 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.4369, allocations: 4 kB / 0.7806 GB, free: 5.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0003039/0.4372, allocations: 145 kB / 0.7807 GB, free: 5.332 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.4373, allocations: 63.28 kB / 0.7808 GB, free: 5.258 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.4375, allocations: 167 kB / 0.781 GB, free: 5.086 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4375, allocations: 29.7 kB / 0.781 GB, free: 5.051 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.4376, allocations: 147.8 kB / 0.7811 GB, free: 4.902 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.4376, allocations: 51.2 kB / 0.7812 GB, free: 4.852 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/0.4377, allocations: 53.61 kB / 0.7812 GB, free: 4.793 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.4378, allocations: 326.8 kB / 0.7815 GB, free: 4.465 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.889e-05/0.4379, allocations: 43.97 kB / 0.7816 GB, free: 4.422 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.438, allocations: 138.2 kB / 0.7817 GB, free: 4.238 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.4382, allocations: 201.5 kB / 0.7819 GB, free: 3.992 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4383, allocations: 3.938 kB / 0.7819 GB, free: 3.988 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003128/0.4386, allocations: 209.2 kB / 0.7821 GB, free: 3.777 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.4386, allocations: 8.469 kB / 0.7821 GB, free: 3.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4386, allocations: 4 kB / 0.7821 GB, free: 3.766 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.4386, allocations: 8 kB / 0.7821 GB, free: 3.758 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.4388, allocations: 55.8 kB / 0.7822 GB, free: 3.703 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.4388, allocations: 11.92 kB / 0.7822 GB, free: 3.691 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.4389, allocations: 31.69 kB / 0.7822 GB, free: 3.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.4389, allocations: 12 kB / 0.7822 GB, free: 3.648 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.4391, allocations: 129.8 kB / 0.7824 GB, free: 3.512 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.4391, allocations: 15.81 kB / 0.7824 GB, free: 3.496 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.4394, allocations: 154.3 kB / 0.7825 GB, free: 3.344 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.4394, allocations: 7.938 kB / 0.7825 GB, free: 3.336 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.4394, allocations: 0 / 0.7825 GB, free: 3.336 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4394, allocations: 3.938 kB / 0.7825 GB, free: 3.332 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.4397, allocations: 221.4 kB / 0.7827 GB, free: 3.066 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4397, allocations: 0 / 0.7827 GB, free: 3.066 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.834e-05/0.4398, allocations: 27.94 kB / 0.7828 GB, free: 3.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4398, allocations: 0 / 0.7828 GB, free: 3.039 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.4398, allocations: 7.984 kB / 0.7828 GB, free: 3.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.4398, allocations: 3.938 kB / 0.7828 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4398, allocations: 0 / 0.7828 GB, free: 3.027 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002336/0.4401, allocations: 215.3 kB / 0.783 GB, free: 2.801 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.59e-05/0.4402, allocations: 104.9 kB / 0.7831 GB, free: 2.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.4402, allocations: 23.91 kB / 0.7831 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.4404, allocations: 11.94 kB / 0.7831 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-05/0.4404, allocations: 11.98 kB / 0.7831 GB, free: 2.633 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.4405, allocations: 11.98 kB / 0.7831 GB, free: 2.621 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.423e-05/0.4406, allocations: 116 kB / 0.7832 GB, free: 2.508 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4406, allocations: 8 kB / 0.7833 GB, free: 2.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003856/0.441, allocations: 75.89 kB / 0.7833 GB, free: 2.426 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002702/0.4412, allocations: 183 kB / 0.7835 GB, free: 2.234 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.4415, allocations: 119.8 kB / 0.7836 GB, free: 2.117 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4415, allocations: 0 / 0.7836 GB, free: 2.117 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.364e-05/0.4416, allocations: 43.92 kB / 0.7837 GB, free: 2.074 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.442, allocations: 59.02 kB / 0.7837 GB, free: 2.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006727/0.4427, allocations: 374.2 kB / 0.7841 GB, free: 1.629 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.443, allocations: 0.7128 MB / 0.7848 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.443, allocations: 31.44 kB / 0.7848 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.443, allocations: 0 / 0.7848 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of Templates: time 0.005305/0.4483, allocations: 3.18 MB / 0.7879 GB, free: 13.7 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)