Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.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.TestFlowFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008192/0.008192, allocations: 100.4 kB / 15.73 MB, free: 6.008 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.001517/0.001517, allocations: 195.4 kB / 16.67 MB, free: 5.93 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.687/1.687, allocations: 205.1 MB / 222.6 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.6443/0.6443, allocations: 95.48 MB / 365.4 MB, free: 9.777 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.001534/0.001534, allocations: 70.09 kB / 0.5036 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1946, allocations: 69.09 MB / 0.5711 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions): time 0.003162/0.1979, allocations: 1.284 MB / 0.5723 GB, free: 7.035 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1994, allocations: 0.6699 MB / 0.573 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.81e-05/0.1996, allocations: 0 / 0.573 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.1996, allocations: 0 / 0.573 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.795e-05/0.1997, allocations: 15.86 kB / 0.573 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.2009, allocations: 226.8 kB / 0.5732 GB, free: 6.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.201, allocations: 31.8 kB / 0.5733 GB, free: 6.094 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.688e-05/0.2011, allocations: 4 kB / 0.5733 GB, free: 6.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.308e-05/0.2011, allocations: 19.92 kB / 0.5733 GB, free: 6.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.425e-05/0.2012, allocations: 11.92 kB / 0.5733 GB, free: 6.059 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.2012, allocations: 4 kB / 0.5733 GB, free: 6.055 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005786/0.2018, allocations: 279.7 kB / 0.5736 GB, free: 5.781 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.2019, allocations: 4 kB / 0.5736 GB, free: 5.777 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.124e-05/0.2019, allocations: 15.92 kB / 0.5736 GB, free: 5.762 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005175/0.2024, allocations: 211.5 kB / 0.5738 GB, free: 5.555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.2025, allocations: 0 / 0.5738 GB, free: 5.555 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2025, allocations: 0 / 0.5738 GB, free: 5.555 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2025, allocations: 4 kB / 0.5738 GB, free: 5.551 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007082/0.2032, allocations: 383.3 kB / 0.5742 GB, free: 5.129 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.2033, allocations: 15.98 kB / 0.5742 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.313e-05/0.2033, allocations: 4.938 kB / 0.5742 GB, free: 5.109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.2035, allocations: 176.2 kB / 0.5743 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2035, allocations: 4.375 kB / 0.5743 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.2036, allocations: 384 / 0.5743 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.204, allocations: 70.22 kB / 0.5744 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.204, allocations: 3.938 kB / 0.5744 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.204, allocations: 0 / 0.5744 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.204, allocations: 0 / 0.5744 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.2043, allocations: 47.91 kB / 0.5745 GB, free: 4.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004339/0.2047, allocations: 264.8 kB / 0.5747 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.2052, allocations: 62.59 kB / 0.5748 GB, free: 4.391 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.347e-05/0.2052, allocations: 20.86 kB / 0.5748 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004392/0.2057, allocations: 190.2 kB / 0.575 GB, free: 4.145 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.2057, allocations: 38.55 kB / 0.575 GB, free: 4.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 1.293e-06/0.2057, allocations: 3.938 kB / 0.575 GB, free: 4.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=4): time 0.0007836/0.2065, allocations: 203.6 kB / 0.5752 GB, free: 3.867 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.2066, allocations: 55.41 kB / 0.5753 GB, free: 3.801 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.2067, allocations: 109.8 kB / 0.5754 GB, free: 3.684 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.2067, allocations: 25.7 kB / 0.5754 GB, free: 3.652 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.139e-05/0.2068, allocations: 84.05 kB / 0.5755 GB, free: 3.566 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.2068, allocations: 15.84 kB / 0.5755 GB, free: 3.551 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.2069, allocations: 21.7 kB / 0.5755 GB, free: 3.523 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.2071, allocations: 314.8 kB / 0.5758 GB, free: 3.207 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.715e-05/0.2071, allocations: 12 kB / 0.5758 GB, free: 3.195 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.121e-05/0.2072, allocations: 34.5 kB / 0.5759 GB, free: 3.152 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.017e-05/0.2073, allocations: 42.69 kB / 0.5759 GB, free: 3.102 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2073, allocations: 3.938 kB / 0.5759 GB, free: 3.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001763/0.2074, allocations: 86.38 kB / 0.576 GB, free: 3.004 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2075, allocations: 8.062 kB / 0.576 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2075, allocations: 4 kB / 0.576 GB, free: 2.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.2087, allocations: 156.6 kB / 0.5761 GB, free: 2.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.944e-05/0.2087, allocations: 7.984 kB / 0.5761 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005149/0.2093, allocations: 0.5445 MB / 0.5767 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.156e-05/0.2093, allocations: 32 / 0.5767 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.2093, allocations: 4 kB / 0.5767 GB, free: 2.254 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.2094, allocations: 109.8 kB / 0.5768 GB, free: 2.137 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.2095, allocations: 7.844 kB / 0.5768 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002634/0.2097, allocations: 90.44 kB / 0.5769 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2098, allocations: 0 / 0.5769 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2098, allocations: 0 / 0.5769 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2098, allocations: 4 kB / 0.5769 GB, free: 2.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.21, allocations: 162.1 kB / 0.577 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.21, allocations: 0 / 0.577 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.825e-05/0.2101, allocations: 8 kB / 0.577 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009997/0.2111, allocations: 156.7 kB / 0.5772 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.2111, allocations: 7.875 kB / 0.5772 GB, free: 1.641 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004035/0.2115, allocations: 0.5484 MB / 0.5777 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2115, allocations: 0 / 0.5777 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.2117, allocations: 168.3 kB / 0.5779 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.2118, allocations: 77.34 kB / 0.578 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.2118, allocations: 0 / 0.578 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-05/0.2119, allocations: 7.984 kB / 0.578 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.759e-05/0.2119, allocations: 3.984 kB / 0.578 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.2119, allocations: 8.062 kB / 0.578 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.475e-05/0.212, allocations: 83.28 kB / 0.5781 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.212, allocations: 0 / 0.5781 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.2123, allocations: 43.92 kB / 0.5781 GB, free: 0.6445 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002714/0.2126, allocations: 135.2 kB / 0.5782 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002589/0.2128, allocations: 47.78 kB / 0.5783 GB, free: 468 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.2129, allocations: 4.125 kB / 0.5783 GB, free: 464 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.213, allocations: 27.98 kB / 0.5783 GB, free: 436 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.2133, allocations: 4 kB / 0.5783 GB, free: 432 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005024/0.2138, allocations: 126.6 kB / 0.5784 GB, free: 276 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.2142, allocations: 0.6807 MB / 0.5791 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.406e-05/0.2142, allocations: 4 kB / 0.5791 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.2143, allocations: 7.438 kB / 0.5791 GB, free: 15.55 MB / 462.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2143, allocations: 7.938 kB / 0.5791 GB, free: 15.54 MB / 462.1 MB Notification: Performance of Templates: time 0.005285/0.2196, allocations: 1.323 MB / 0.5804 GB, free: 14.22 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.makefile (rm -f Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.pipe >> ../files/Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.sim & ./Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions.pipe 2>&1)