Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00819/0.008191, allocations: 101.2 kB / 15.73 MB, free: 6.059 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.001395/0.001395, allocations: 197.3 kB / 16.67 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.1 MB / 222.6 MB, free: 4.332 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6099/0.6099, allocations: 95.47 MB / 365.4 MB, free: 9.73 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 68.53 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1654, allocations: 69.08 MB / 0.5711 GB, free: 8.328 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction): time 0.003007/0.1684, allocations: 1.264 MB / 0.5723 GB, free: 7.055 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.1698, allocations: 0.6466 MB / 0.5729 GB, free: 6.402 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.368e-05/0.1699, allocations: 0 / 0.5729 GB, free: 6.402 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.896e-05/0.1699, allocations: 0 / 0.5729 GB, free: 6.402 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.842e-05/0.17, allocations: 7.922 kB / 0.5729 GB, free: 6.395 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008623/0.1708, allocations: 230.4 kB / 0.5732 GB, free: 6.172 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.1709, allocations: 23.81 kB / 0.5732 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.412e-05/0.171, allocations: 0 / 0.5732 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.851e-05/0.171, allocations: 11.98 kB / 0.5732 GB, free: 6.137 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.716e-05/0.1711, allocations: 7.938 kB / 0.5732 GB, free: 6.129 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.1711, allocations: 4 kB / 0.5732 GB, free: 6.125 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005027/0.1716, allocations: 283.7 kB / 0.5735 GB, free: 5.848 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.1717, allocations: 4 kB / 0.5735 GB, free: 5.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.1717, allocations: 7.938 kB / 0.5735 GB, free: 5.836 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.1721, allocations: 203.5 kB / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1721, allocations: 0 / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1721, allocations: 0 / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1721, allocations: 4 kB / 0.5737 GB, free: 5.633 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006554/0.1728, allocations: 367.5 kB / 0.574 GB, free: 5.227 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.1729, allocations: 11.98 kB / 0.5741 GB, free: 5.215 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.1729, allocations: 8.844 kB / 0.5741 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.1732, allocations: 168.4 kB / 0.5742 GB, free: 5.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.1732, allocations: 4.375 kB / 0.5742 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.1732, allocations: 384 / 0.5742 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.1736, allocations: 54.23 kB / 0.5743 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.1736, allocations: 7.922 kB / 0.5743 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1737, allocations: 4 kB / 0.5743 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1737, allocations: 0 / 0.5743 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/0.1739, allocations: 31.91 kB / 0.5743 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004051/0.1743, allocations: 252.9 kB / 0.5746 GB, free: 4.602 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.1747, allocations: 66.59 kB / 0.5746 GB, free: 4.527 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.74e-05/0.1748, allocations: 16.86 kB / 0.5746 GB, free: 4.508 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005894/0.1754, allocations: 384.3 kB / 0.575 GB, free: 4.059 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.1754, allocations: 34.56 kB / 0.575 GB, free: 4.016 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 1.523e-06/0.1754, allocations: 0 / 0.575 GB, free: 4.016 MB / 446.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004533/0.1759, allocations: 85.59 kB / 0.5751 GB, free: 3.926 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.1759, allocations: 55.34 kB / 0.5752 GB, free: 3.859 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.382e-05/0.176, allocations: 97.84 kB / 0.5753 GB, free: 3.754 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.176, allocations: 25.7 kB / 0.5753 GB, free: 3.723 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.1761, allocations: 95.98 kB / 0.5754 GB, free: 3.625 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.1761, allocations: 11.81 kB / 0.5754 GB, free: 3.613 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.1761, allocations: 17.72 kB / 0.5754 GB, free: 3.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1763, allocations: 318.8 kB / 0.5757 GB, free: 3.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.1763, allocations: 8 kB / 0.5757 GB, free: 3.262 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.412e-05/0.1763, allocations: 17.72 kB / 0.5757 GB, free: 3.238 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.505e-05/0.1764, allocations: 41.64 kB / 0.5758 GB, free: 3.191 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1764, allocations: 3.938 kB / 0.5758 GB, free: 3.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001107/0.1765, allocations: 61.62 kB / 0.5758 GB, free: 3.121 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1765, allocations: 4 kB / 0.5758 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1766, allocations: 0 / 0.5758 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.1766, allocations: 4 kB / 0.5758 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.586e-05/0.1766, allocations: 8 kB / 0.5759 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.1767, allocations: 0 / 0.5759 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.002e-05/0.1767, allocations: 0 / 0.5759 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1767, allocations: 8.031 kB / 0.5759 GB, free: 3.098 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * 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 7.968e-05/0.1768, allocations: 113.8 kB / 0.576 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.1768, allocations: 0 / 0.576 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.177, allocations: 73.03 kB / 0.576 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.177, allocations: 128 / 0.576 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.177, allocations: 8 kB / 0.576 GB, free: 2.883 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1771, allocations: 4.453 kB / 0.5761 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.1772, allocations: 161.6 kB / 0.5762 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1772, allocations: 0 / 0.5762 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.532e-05/0.1773, allocations: 4 kB / 0.5762 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1773, allocations: 4 kB / 0.5762 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.1773, allocations: 0 / 0.5762 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1773, allocations: 0 / 0.5762 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1773, allocations: 0 / 0.5762 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.1775, allocations: 155.5 kB / 0.5764 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.1775, allocations: 81.05 kB / 0.5764 GB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.1775, allocations: 4 kB / 0.5764 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.969e-05/0.1776, allocations: 3.984 kB / 0.5764 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.105e-05/0.1776, allocations: 7.938 kB / 0.5765 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1776, allocations: 4 kB / 0.5765 GB, free: 2.379 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.406e-05/0.1777, allocations: 75.28 kB / 0.5765 GB, free: 2.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1777, allocations: 0 / 0.5765 GB, free: 2.305 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003349/0.178, allocations: 59.98 kB / 0.5766 GB, free: 2.246 MB / 446.1 MB 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 (4): * Single equations (assignments): 4 * Array equations: 0 * 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.0003141/0.1784, allocations: 175.1 kB / 0.5768 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.1785, allocations: 27.92 kB / 0.5768 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1785, allocations: 0 / 0.5768 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.1785, allocations: 15.94 kB / 0.5768 GB, free: 2.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.1788, allocations: 7.875 kB / 0.5768 GB, free: 2.012 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003628/0.1791, allocations: 118.6 kB / 0.5769 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.1794, allocations: 0.6768 MB / 0.5776 GB, free: 1.168 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.434e-05/0.1795, allocations: 8 kB / 0.5776 GB, free: 1.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.69e-05/0.1795, allocations: 15.42 kB / 0.5776 GB, free: 1.145 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1795, allocations: 0 / 0.5776 GB, free: 1.145 MB / 446.1 MB Notification: Performance of Templates: time 0.004197/0.1837, allocations: 1.284 MB / 0.5789 GB, free: 15.86 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.makefile (rm -f Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.pipe >> ../files/Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.sim & ./Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction.pipe 2>&1)