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.008898/0.008898, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001761/0.001761, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.612/1.612, allocations: 205.1 MB / 222.5 MB, free: 4.406 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.7083/0.7083, allocations: 95.47 MB / 365.4 MB, free: 9.707 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.001563/0.001563, allocations: 67.91 kB / 0.5036 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1798, allocations: 69.09 MB / 0.5711 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions): time 0.002978/0.1829, allocations: 1.28 MB / 0.5723 GB, free: 7.016 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1843, allocations: 0.67 MB / 0.573 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.1844, allocations: 3.938 kB / 0.573 GB, free: 6.336 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.635e-05/0.1844, allocations: 3.938 kB / 0.573 GB, free: 6.332 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.983e-05/0.1845, allocations: 7.938 kB / 0.573 GB, free: 6.324 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000679/0.1851, allocations: 229.3 kB / 0.5732 GB, free: 6.102 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 9.999e-05/0.1853, allocations: 31.86 kB / 0.5733 GB, free: 6.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.708e-05/0.1853, allocations: 0 / 0.5733 GB, free: 6.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.808e-05/0.1854, allocations: 15.92 kB / 0.5733 GB, free: 6.055 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.689e-05/0.1854, allocations: 15.92 kB / 0.5733 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.1855, allocations: 4 kB / 0.5733 GB, free: 6.035 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004018/0.1859, allocations: 279.6 kB / 0.5736 GB, free: 5.762 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.1859, allocations: 7.984 kB / 0.5736 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.1859, allocations: 11.94 kB / 0.5736 GB, free: 5.742 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.1863, allocations: 207.6 kB / 0.5738 GB, free: 5.539 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1863, allocations: 0 / 0.5738 GB, free: 5.539 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1863, allocations: 3.938 kB / 0.5738 GB, free: 5.535 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1863, allocations: 0 / 0.5738 GB, free: 5.535 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.0005583/0.1869, allocations: 387.4 kB / 0.5741 GB, free: 5.109 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1869, allocations: 11.98 kB / 0.5742 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.187, allocations: 4.938 kB / 0.5742 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.1872, allocations: 180.2 kB / 0.5743 GB, free: 4.879 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1872, allocations: 4.375 kB / 0.5743 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1872, allocations: 4.375 kB / 0.5743 GB, free: 4.871 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.1876, allocations: 70.2 kB / 0.5744 GB, free: 4.797 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1876, allocations: 3.938 kB / 0.5744 GB, free: 4.793 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.1876, allocations: 4 kB / 0.5744 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1876, allocations: 0 / 0.5744 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.1878, allocations: 31.97 kB / 0.5744 GB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.1882, allocations: 260.9 kB / 0.5747 GB, free: 4.453 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.1886, allocations: 70.55 kB / 0.5748 GB, free: 4.375 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/0.1887, allocations: 20.84 kB / 0.5748 GB, free: 4.352 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003224/0.189, allocations: 190.2 kB / 0.575 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.189, allocations: 34.56 kB / 0.575 GB, free: 4.086 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.189, allocations: 0 / 0.575 GB, free: 4.086 MB / 446.1 MB Notification: Performance of matching and sorting (n=4): time 0.0007019/0.1897, allocations: 211.5 kB / 0.5752 GB, free: 3.852 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.1898, allocations: 51.41 kB / 0.5752 GB, free: 3.789 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.226e-05/0.1899, allocations: 106 kB / 0.5753 GB, free: 3.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.1899, allocations: 25.7 kB / 0.5754 GB, free: 3.645 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.19, allocations: 100 kB / 0.5755 GB, free: 3.543 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.157e-05/0.19, allocations: 7.844 kB / 0.5755 GB, free: 3.535 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.1901, allocations: 21.72 kB / 0.5755 GB, free: 3.508 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1902, allocations: 318.8 kB / 0.5758 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.733e-05/0.1902, allocations: 11.94 kB / 0.5758 GB, free: 3.176 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.127e-05/0.1903, allocations: 38.56 kB / 0.5758 GB, free: 3.129 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.743e-05/0.1903, allocations: 42.52 kB / 0.5759 GB, free: 3.078 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1903, allocations: 0 / 0.5759 GB, free: 3.078 MB / 446.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001399/0.1905, allocations: 86.38 kB / 0.576 GB, free: 2.984 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1905, allocations: 4 kB / 0.576 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1905, allocations: 0 / 0.576 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.1916, allocations: 161 kB / 0.5761 GB, free: 2.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.365e-05/0.1916, allocations: 7.984 kB / 0.5761 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004297/0.1921, allocations: 0.5445 MB / 0.5767 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.442e-05/0.1921, allocations: 8.078 kB / 0.5767 GB, free: 2.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1921, allocations: 8 kB / 0.5767 GB, free: 2.227 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 8.328e-05/0.1922, allocations: 109.8 kB / 0.5768 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.1923, allocations: 7.906 kB / 0.5768 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.1925, allocations: 90.31 kB / 0.5769 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1925, allocations: 0 / 0.5769 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1925, allocations: 0 / 0.5769 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1925, allocations: 0 / 0.5769 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.1927, allocations: 161.7 kB / 0.577 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1927, allocations: 0 / 0.577 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.535e-05/0.1927, allocations: 0 / 0.577 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000917/0.1936, allocations: 156.7 kB / 0.5772 GB, free: 1.633 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1937, allocations: 7.938 kB / 0.5772 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003596/0.194, allocations: 0.5405 MB / 0.5777 GB, free: 1.059 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.194, allocations: 0 / 0.5777 GB, free: 1.059 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.1942, allocations: 172.4 kB / 0.5779 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.1943, allocations: 81.11 kB / 0.578 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.1943, allocations: 128 / 0.578 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.64e-05/0.1944, allocations: 4 kB / 0.578 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.1944, allocations: 7.984 kB / 0.578 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.1944, allocations: 0 / 0.578 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.057e-05/0.1945, allocations: 83.28 kB / 0.5781 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1945, allocations: 0 / 0.5781 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003192/0.1948, allocations: 51.92 kB / 0.5781 GB, free: 0.6289 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.0002666/0.1951, allocations: 143.1 kB / 0.5782 GB, free: 492 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.1953, allocations: 39.91 kB / 0.5783 GB, free: 452 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1953, allocations: 0 / 0.5783 GB, free: 452 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1955, allocations: 27.98 kB / 0.5783 GB, free: 424 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1957, allocations: 384 / 0.5783 GB, free: 424 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/0.1962, allocations: 134.7 kB / 0.5784 GB, free: 260 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.1965, allocations: 0.6778 MB / 0.5791 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.162e-05/0.1965, allocations: 15.91 kB / 0.5791 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.785e-05/0.1965, allocations: 7.438 kB / 0.5791 GB, free: 15.53 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1966, allocations: 0 / 0.5791 GB, free: 15.53 MB / 462.1 MB Notification: Performance of Templates: time 0.004472/0.201, allocations: 1.338 MB / 0.5804 GB, free: 14.19 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)