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.008172/0.008173, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001519/0.001519, allocations: 194 kB / 16.67 MB, free: 5.977 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.642/1.642, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.5983/0.5983, allocations: 95.48 MB / 365.4 MB, free: 9.785 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.001474/0.001474, allocations: 75.91 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1798, allocations: 69.08 MB / 0.5711 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Examples.InverseFlowFunction): time 0.002275/0.1822, allocations: 1.253 MB / 0.5723 GB, free: 7.066 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1834, allocations: 0.6544 MB / 0.5729 GB, free: 6.406 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.796e-05/0.1834, allocations: 4 kB / 0.5729 GB, free: 6.402 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.087e-05/0.1835, allocations: 3.938 kB / 0.5729 GB, free: 6.398 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.814e-05/0.1835, allocations: 3.938 kB / 0.573 GB, free: 6.395 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006277/0.1842, allocations: 222 kB / 0.5732 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.106e-05/0.1842, allocations: 23.86 kB / 0.5732 GB, free: 6.156 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.777e-05/0.1843, allocations: 4 kB / 0.5732 GB, free: 6.152 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.663e-05/0.1843, allocations: 7.984 kB / 0.5732 GB, free: 6.145 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.569e-05/0.1844, allocations: 15.92 kB / 0.5732 GB, free: 6.129 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.1844, allocations: 0 / 0.5732 GB, free: 6.129 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004859/0.1849, allocations: 275.6 kB / 0.5735 GB, free: 5.859 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.1849, allocations: 7.984 kB / 0.5735 GB, free: 5.852 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.185, allocations: 11.92 kB / 0.5735 GB, free: 5.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.1853, allocations: 203.6 kB / 0.5737 GB, free: 5.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1853, allocations: 4 kB / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1853, allocations: 0 / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1853, allocations: 0 / 0.5737 GB, free: 5.637 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.00045/0.1857, allocations: 367.5 kB / 0.574 GB, free: 5.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1858, allocations: 11.98 kB / 0.5741 GB, free: 5.219 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.1858, allocations: 8.844 kB / 0.5741 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.186, allocations: 160.4 kB / 0.5742 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.186, allocations: 384 / 0.5742 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.186, allocations: 4.375 kB / 0.5742 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.1863, allocations: 70.17 kB / 0.5743 GB, free: 4.938 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.1863, allocations: 3.938 kB / 0.5743 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.1863, allocations: 0 / 0.5743 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1863, allocations: 0 / 0.5743 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.1865, allocations: 31.97 kB / 0.5743 GB, free: 4.902 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.1868, allocations: 245 kB / 0.5746 GB, free: 4.613 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.1872, allocations: 66.55 kB / 0.5746 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.501e-05/0.1872, allocations: 20.84 kB / 0.5746 GB, free: 4.516 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005634/0.1878, allocations: 376.3 kB / 0.575 GB, free: 4.074 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.1878, allocations: 30.56 kB / 0.575 GB, free: 4.035 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1878, allocations: 4 kB / 0.575 GB, free: 4.031 MB / 446.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004634/0.1883, allocations: 85.83 kB / 0.5751 GB, free: 3.941 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.1884, allocations: 55.41 kB / 0.5752 GB, free: 3.875 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.207e-05/0.1884, allocations: 101.8 kB / 0.5753 GB, free: 3.766 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.1885, allocations: 25.7 kB / 0.5753 GB, free: 3.734 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.1885, allocations: 95.91 kB / 0.5754 GB, free: 3.637 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.1886, allocations: 15.8 kB / 0.5754 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.604e-05/0.1886, allocations: 13.72 kB / 0.5754 GB, free: 3.602 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1887, allocations: 326.8 kB / 0.5757 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.405e-05/0.1888, allocations: 7.938 kB / 0.5757 GB, free: 3.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.787e-05/0.1888, allocations: 25.7 kB / 0.5758 GB, free: 3.234 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.737e-05/0.1889, allocations: 25.72 kB / 0.5758 GB, free: 3.203 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1889, allocations: 7.938 kB / 0.5758 GB, free: 3.195 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.239e-05/0.189, allocations: 53.62 kB / 0.5758 GB, free: 3.137 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.189, allocations: 12.97 kB / 0.5758 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.189, allocations: 0 / 0.5758 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.189, allocations: 0 / 0.5758 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.935e-05/0.1891, allocations: 11.98 kB / 0.5759 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.1891, allocations: 0 / 0.5759 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.078e-05/0.1891, allocations: 4 kB / 0.5759 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.1892, allocations: 4 kB / 0.5759 GB, free: 3.105 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 8.384e-05/0.1893, allocations: 113.8 kB / 0.576 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.1893, allocations: 0 / 0.576 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.1895, allocations: 77.02 kB / 0.576 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1895, allocations: 4 kB / 0.5761 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1895, allocations: 0 / 0.5761 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1895, allocations: 0 / 0.5761 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.1897, allocations: 157.6 kB / 0.5762 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1897, allocations: 128 / 0.5762 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.708e-05/0.1897, allocations: 16 kB / 0.5762 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1897, allocations: 0 / 0.5762 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.1897, allocations: 0 / 0.5762 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1898, allocations: 3.984 kB / 0.5762 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1898, allocations: 0 / 0.5762 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.1899, allocations: 155.4 kB / 0.5764 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.19, allocations: 81.05 kB / 0.5764 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.19, allocations: 0 / 0.5764 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.46e-05/0.19, allocations: 4 kB / 0.5765 GB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.854e-05/0.1901, allocations: 4 kB / 0.5765 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.1901, allocations: 0 / 0.5765 GB, free: 2.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.258e-05/0.1901, allocations: 87.59 kB / 0.5765 GB, free: 2.309 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1901, allocations: 0 / 0.5765 GB, free: 2.309 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.1904, allocations: 56 kB / 0.5766 GB, free: 2.254 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.0003031/0.1908, allocations: 167.1 kB / 0.5768 GB, free: 2.078 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.1909, allocations: 24.08 kB / 0.5768 GB, free: 2.055 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1909, allocations: 4.062 kB / 0.5768 GB, free: 2.051 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.58e-05/0.1909, allocations: 16.06 kB / 0.5768 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.1912, allocations: 15.88 kB / 0.5768 GB, free: 2.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.1915, allocations: 114.6 kB / 0.5769 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1918, allocations: 0.6768 MB / 0.5776 GB, free: 1.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.538e-05/0.1919, allocations: 8 kB / 0.5776 GB, free: 1.172 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.1919, allocations: 7.438 kB / 0.5776 GB, free: 1.164 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1919, allocations: 3.938 kB / 0.5776 GB, free: 1.16 MB / 446.1 MB Notification: Performance of Templates: time 0.004025/0.1959, allocations: 1.3 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)