Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.01757/0.01757, allocations: 165 kB / 15.11 MB, free: 5.934 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.678/1.678, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.002048/0.002047, allocations: 107.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.4702/0.4702, allocations: 38.06 MB / 303.7 MB, free: 42.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004912/0.0004911, allocations: 16 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.096/8.203, allocations: 2.548 GB / 2.95 GB, free: 61.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/8.203, allocations: 79.12 kB / 2.95 GB, free: 61.79 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.797/13, allocations: 0.8422 GB / 3.792 GB, free: 28.45 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.877e-06/13, allocations: 0 / 3.792 GB, free: 28.45 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002877/13, allocations: 70.81 kB / 3.792 GB, free: 28.43 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.01877/13.02, allocations: 4.02 MB / 3.796 GB, free: 26.46 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/13.02, allocations: 8.062 kB / 3.796 GB, free: 26.46 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00166/13.02, allocations: 298 kB / 3.796 GB, free: 26.41 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009109/13.03, allocations: 0.8204 MB / 3.797 GB, free: 26.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008568/13.04, allocations: 2.103 MB / 3.799 GB, free: 25.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003804/13.04, allocations: 182.6 kB / 3.799 GB, free: 25.81 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/13.04, allocations: 198.8 kB / 3.799 GB, free: 25.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/13.05, allocations: 3.578 MB / 3.803 GB, free: 25.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/13.05, allocations: 4.125 kB / 3.803 GB, free: 25.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004216/13.05, allocations: 90.31 kB / 3.803 GB, free: 25.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003047/13.05, allocations: 162.2 kB / 3.803 GB, free: 25.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/13.07, allocations: 3.285 MB / 3.806 GB, free: 25.27 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.02858/13.1, allocations: 15.04 MB / 3.821 GB, free: 16.24 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008898/13.1, allocations: 2.3 MB / 3.823 GB, free: 16.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05747/13.16, allocations: 18.79 MB / 3.842 GB, free: 20.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007067/13.17, allocations: 1.628 MB / 3.843 GB, free: 20.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.48e-06/13.17, allocations: 0 / 3.843 GB, free: 20.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03432/13.2, allocations: 8.181 MB / 3.851 GB, free: 19.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/13.2, allocations: 285.7 kB / 3.851 GB, free: 18.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/13.21, allocations: 1.408 MB / 3.853 GB, free: 18.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005978/13.21, allocations: 56.45 kB / 3.853 GB, free: 18.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/13.21, allocations: 0.9833 MB / 3.854 GB, free: 18.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009539/13.21, allocations: 0.5783 MB / 3.854 GB, free: 17.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002616/13.21, allocations: 38.78 kB / 3.854 GB, free: 17.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002399/13.21, allocations: 390.6 kB / 3.855 GB, free: 17.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/13.21, allocations: 1.142 MB / 3.856 GB, free: 17.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003903/13.22, allocations: 1.645 MB / 3.858 GB, free: 16.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/13.22, allocations: 1.373 MB / 3.859 GB, free: 16.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/13.22, allocations: 3.656 kB / 3.859 GB, free: 16.81 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01178/13.23, allocations: 3.947 MB / 3.863 GB, free: 16.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002606/13.24, allocations: 5.325 MB / 3.868 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.317e-05/13.24, allocations: 21.81 kB / 3.868 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02461/13.26, allocations: 2.919 MB / 3.871 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/13.26, allocations: 315.2 kB / 3.871 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009893/13.27, allocations: 3.495 MB / 3.875 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003881/13.28, allocations: 258.1 kB / 3.875 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003711/13.28, allocations: 100.9 kB / 3.875 GB, free: 10.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/13.28, allocations: 3.5 kB / 3.875 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01139/13.29, allocations: 3.548 MB / 3.878 GB, free: 9.973 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-05/13.29, allocations: 14.09 kB / 3.878 GB, free: 9.973 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/13.3, allocations: 1.765 MB / 3.88 GB, free: 9.664 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/13.3, allocations: 362.3 kB / 3.88 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007011/13.31, allocations: 2.751 MB / 3.883 GB, free: 8.363 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/13.31, allocations: 261.2 kB / 3.883 GB, free: 8.301 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005066/13.32, allocations: 100.9 kB / 3.883 GB, free: 8.277 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.002346/13.32, allocations: 0.7233 MB / 3.884 GB, free: 7.816 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006785/13.32, allocations: 198.9 kB / 3.884 GB, free: 7.719 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01737/13.34, allocations: 7.769 MB / 3.892 GB, free: 1.715 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001243/13.34, allocations: 93.7 kB / 3.892 GB, free: 1.656 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/13.34, allocations: 3.953 kB / 3.892 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4293/13.77, allocations: 6.682 MB / 3.899 GB, free: 43.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02605/13.79, allocations: 10.92 MB / 3.909 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.391e-05/13.79, allocations: 0 / 3.909 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/13.8, allocations: 404.2 kB / 3.91 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002594/13.8, allocations: 382.5 kB / 3.91 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005566/13.8, allocations: 62.66 kB / 3.91 GB, free: 42.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/13.8, allocations: 2.571 MB / 3.913 GB, free: 40.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/13.8, allocations: 0 / 3.913 GB, free: 40.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02415/13.82, allocations: 7.228 MB / 3.92 GB, free: 40.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003167/13.83, allocations: 0.7487 MB / 3.92 GB, free: 40.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001497/13.83, allocations: 48.09 kB / 3.92 GB, free: 40.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004422/13.83, allocations: 199.8 kB / 3.921 GB, free: 40.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009066/13.83, allocations: 141.4 kB / 3.921 GB, free: 40.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003834/13.84, allocations: 76.94 kB / 3.921 GB, free: 40.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004041/13.84, allocations: 1.186 MB / 3.922 GB, free: 39.87 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.595e-06/13.84, allocations: 0 / 3.922 GB, free: 39.87 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01702/13.86, allocations: 2.745 MB / 3.925 GB, free: 39.87 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.03256/13.89, allocations: 10.48 MB / 3.935 GB, free: 38.66 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01687/13.91, allocations: 5.325 MB / 3.94 GB, free: 38.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/13.91, allocations: 0 / 3.94 GB, free: 38.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005887/13.91, allocations: 2.416 MB / 3.942 GB, free: 38.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008315/13.92, allocations: 0.8654 MB / 3.943 GB, free: 38.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8229/14.74, allocations: 139.8 MB / 4.08 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004224/14.75, allocations: 2.305 MB / 4.082 GB, free: 48.86 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006689/14.75, allocations: 1.719 MB / 4.084 GB, free: 48.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003012/14.76, allocations: 1.313 MB / 4.085 GB, free: 48.83 MB / 0.4948 GB Notification: Performance of SimCode: time 1.483e-06/14.76, allocations: 0 / 4.085 GB, free: 48.83 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.315/15.07, allocations: 120.8 MB / 4.203 GB, free: 33.33 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/15.07, allocations: 248.7 kB / 4.203 GB, free: 33 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.714/23.79, allocations: 4 kB / 4.203 GB, free: 33 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat