Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01004/0.01004, allocations: 166.7 kB / 15.11 MB, free: 5.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.621/1.621, allocations: 170.8 MB / 186.6 MB, free: 1.031 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002036/0.002036, allocations: 115.3 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4416/0.4416, allocations: 38.05 MB / 303.7 MB, free: 42.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.000495, allocations: 8 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1165, allocations: 48.71 MB / 411.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.227/8.343, allocations: 2.548 GB / 2.95 GB, free: 62.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003938/8.344, allocations: 78.41 kB / 2.95 GB, free: 62.25 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.647/12.99, allocations: 0.7811 GB / 3.731 GB, free: 28.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.765e-06/12.99, allocations: 0 / 3.731 GB, free: 28.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003731/12.99, allocations: 68.94 kB / 3.731 GB, free: 28.81 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.04441/13.04, allocations: 4.027 MB / 3.735 GB, free: 27.03 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/13.04, allocations: 10.47 kB / 3.735 GB, free: 27.03 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001779/13.04, allocations: 291.9 kB / 3.735 GB, free: 26.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009451/13.05, allocations: 0.8148 MB / 3.736 GB, free: 26.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008805/13.06, allocations: 2.108 MB / 3.738 GB, free: 26.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004576/13.06, allocations: 183.1 kB / 3.738 GB, free: 26.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/13.06, allocations: 198.1 kB / 3.738 GB, free: 26.39 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/13.07, allocations: 3.579 MB / 3.742 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.046e-05/13.07, allocations: 16.64 kB / 3.742 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003905/13.07, allocations: 88.3 kB / 3.742 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/13.07, allocations: 159.6 kB / 3.742 GB, free: 25.86 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/13.08, allocations: 3.286 MB / 3.745 GB, free: 25.85 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02833/13.11, allocations: 15.02 MB / 3.76 GB, free: 16.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009377/13.12, allocations: 2.303 MB / 3.762 GB, free: 16.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06405/13.19, allocations: 18.78 MB / 3.781 GB, free: 21.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006848/13.19, allocations: 1.632 MB / 3.782 GB, free: 20.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 6.752e-06/13.19, allocations: 2.625 kB / 3.782 GB, free: 20.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03251/13.23, allocations: 8.176 MB / 3.79 GB, free: 19.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/13.23, allocations: 282.5 kB / 3.79 GB, free: 19.65 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002998/13.23, allocations: 1.412 MB / 3.792 GB, free: 19.47 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005452/13.23, allocations: 56.05 kB / 3.792 GB, free: 19.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009635/13.23, allocations: 0.9799 MB / 3.793 GB, free: 19.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008352/13.23, allocations: 0.5848 MB / 3.793 GB, free: 18.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/13.23, allocations: 39.83 kB / 3.793 GB, free: 18.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002279/13.23, allocations: 392.2 kB / 3.794 GB, free: 18.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003357/13.23, allocations: 1.147 MB / 3.795 GB, free: 18.35 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003659/13.24, allocations: 1.643 MB / 3.796 GB, free: 17.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003916/13.24, allocations: 1.37 MB / 3.798 GB, free: 17.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/13.24, allocations: 6.469 kB / 3.798 GB, free: 17.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01145/13.25, allocations: 3.947 MB / 3.802 GB, free: 17.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002323/13.26, allocations: 5.326 MB / 3.807 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.978e-05/13.26, allocations: 17.19 kB / 3.807 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02471/13.28, allocations: 2.917 MB / 3.81 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/13.28, allocations: 314.8 kB / 3.81 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009078/13.29, allocations: 3.501 MB / 3.813 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003911/13.3, allocations: 264.7 kB / 3.814 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005819/13.3, allocations: 101.1 kB / 3.814 GB, free: 11.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/13.3, allocations: 2.656 kB / 3.814 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01122/13.31, allocations: 3.54 MB / 3.817 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.13e-05/13.31, allocations: 12.94 kB / 3.817 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0123/13.32, allocations: 1.771 MB / 3.819 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/13.32, allocations: 361 kB / 3.819 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006895/13.33, allocations: 2.749 MB / 3.822 GB, free: 10.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003648/13.33, allocations: 264.2 kB / 3.822 GB, free: 10.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/13.33, allocations: 98.88 kB / 3.822 GB, free: 10.62 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002034/13.34, allocations: 0.7246 MB / 3.823 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006201/13.34, allocations: 199.1 kB / 3.823 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/13.35, allocations: 7.775 MB / 3.831 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/13.35, allocations: 92.2 kB / 3.831 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/13.35, allocations: 0 / 3.831 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01397/13.37, allocations: 6.671 MB / 3.837 GB, free: 8.691 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02421/13.39, allocations: 10.92 MB / 3.848 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/13.39, allocations: 0 / 3.848 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003425/13.4, allocations: 400.5 kB / 3.849 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/13.4, allocations: 378.4 kB / 3.849 GB, free: 7.891 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005642/13.4, allocations: 65.8 kB / 3.849 GB, free: 7.891 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/13.4, allocations: 2.573 MB / 3.851 GB, free: 5.812 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/13.4, allocations: 2.719 kB / 3.851 GB, free: 5.812 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/13.42, allocations: 7.224 MB / 3.859 GB, free: 4.164 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/13.42, allocations: 0.7498 MB / 3.859 GB, free: 3.699 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008682/13.42, allocations: 51.45 kB / 3.859 GB, free: 3.668 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/13.43, allocations: 194.3 kB / 3.859 GB, free: 3.633 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007562/13.43, allocations: 150.8 kB / 3.86 GB, free: 3.613 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/13.43, allocations: 64.91 kB / 3.86 GB, free: 3.602 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002895/13.43, allocations: 1.183 MB / 3.861 GB, free: 3.145 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/13.43, allocations: 2.594 kB / 3.861 GB, free: 3.145 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0139/13.44, allocations: 2.747 MB / 3.864 GB, free: 2.559 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03872/13.48, allocations: 10.72 MB / 3.874 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01656/13.5, allocations: 5.317 MB / 3.879 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.537e-06/13.5, allocations: 2.875 kB / 3.879 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0061/13.51, allocations: 2.424 MB / 3.882 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00803/13.51, allocations: 0.8655 MB / 3.882 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8476/14.36, allocations: 139.8 MB / 4.019 GB, free: 32.17 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/14.36, allocations: 2.305 MB / 4.021 GB, free: 31.37 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005741/14.37, allocations: 1.723 MB / 4.023 GB, free: 31.29 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002982/14.37, allocations: 1.309 MB / 4.024 GB, free: 31.29 MB / 0.4948 GB Notification: Performance of SimCode: time 1.322e-06/14.37, allocations: 0 / 4.024 GB, free: 31.29 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7131/15.09, allocations: 120.8 MB / 4.142 GB, free: 46.72 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/15.09, allocations: 252.6 kB / 4.142 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.692/23.78, allocations: 0 / 4.142 GB, free: 46.38 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat