Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.241/2.241, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004283, allocations: 12 kB / 314.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3636, allocations: 54.86 MB / 369.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.19/8.554, allocations: 2.658 GB / 3.019 GB, free: 61.91 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/8.554, allocations: 77.47 kB / 3.019 GB, free: 61.87 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.486/13.04, allocations: 0.7993 GB / 3.818 GB, free: 9.836 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.176e-06/13.04, allocations: 0 / 3.818 GB, free: 9.836 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003352/13.04, allocations: 71.36 kB / 3.818 GB, free: 9.77 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01952/13.06, allocations: 4.138 MB / 3.822 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/13.06, allocations: 8.031 kB / 3.822 GB, free: 5.57 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001433/13.06, allocations: 295.3 kB / 3.823 GB, free: 5.273 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00869/13.07, allocations: 0.8438 MB / 3.823 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008413/13.08, allocations: 2.106 MB / 3.825 GB, free: 2.273 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002918/13.08, allocations: 183.7 kB / 3.826 GB, free: 2.094 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008182/13.08, allocations: 192 kB / 3.826 GB, free: 1.906 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/13.09, allocations: 3.596 MB / 3.829 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.861e-05/13.09, allocations: 7.922 kB / 3.829 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004668/13.09, allocations: 83.97 kB / 3.829 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003686/13.09, allocations: 163.5 kB / 3.83 GB, free: 13.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/13.11, allocations: 3.293 MB / 3.833 GB, free: 10.55 MB / 0.5105 GB 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.4674/13.57, allocations: 15.05 MB / 3.847 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009346/13.58, allocations: 2.3 MB / 3.85 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05647/13.64, allocations: 18.81 MB / 3.868 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006899/13.65, allocations: 1.635 MB / 3.87 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.613e-06/13.65, allocations: 0 / 3.87 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.05073/13.7, allocations: 8.87 MB / 3.878 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/13.7, allocations: 280.7 kB / 3.879 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004274/13.7, allocations: 1.415 MB / 3.88 GB, free: 21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006582/13.7, allocations: 60.55 kB / 3.88 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001347/13.7, allocations: 0.9211 MB / 3.881 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001245/13.71, allocations: 0.5873 MB / 3.882 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/13.71, allocations: 38.44 kB / 3.882 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002009/13.71, allocations: 396.9 kB / 3.882 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004719/13.71, allocations: 1.157 MB / 3.883 GB, free: 19.97 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0054/13.72, allocations: 1.641 MB / 3.885 GB, free: 19.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005675/13.72, allocations: 1.389 MB / 3.886 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.984e-05/13.72, allocations: 3.688 kB / 3.886 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01395/13.74, allocations: 3.212 MB / 3.889 GB, free: 19.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002325/13.74, allocations: 5.174 MB / 3.894 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.576e-05/13.74, allocations: 13.69 kB / 3.894 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/13.74, allocations: 278.7 kB / 3.895 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/13.74, allocations: 0.5115 MB / 3.895 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/13.75, allocations: 2.505 MB / 3.897 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003905/13.75, allocations: 263.4 kB / 3.898 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003606/13.75, allocations: 100.8 kB / 3.898 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/13.75, allocations: 3.156 kB / 3.898 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009174/13.76, allocations: 3.061 MB / 3.901 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.812e-05/13.76, allocations: 17.45 kB / 3.901 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/13.76, allocations: 271 kB / 3.901 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003941/13.77, allocations: 0.5179 MB / 3.902 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/13.77, allocations: 2.501 MB / 3.904 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/13.77, allocations: 253 kB / 3.904 GB, free: 25.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/13.77, allocations: 106.4 kB / 3.904 GB, free: 25.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.002242/13.77, allocations: 0.7217 MB / 3.905 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006541/13.77, allocations: 201 kB / 3.905 GB, free: 25.14 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01575/13.79, allocations: 7.779 MB / 3.913 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.734e-05/13.79, allocations: 90.52 kB / 3.913 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/13.79, allocations: 0 / 3.913 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01297/13.8, allocations: 6.671 MB / 3.919 GB, free: 23.63 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02313/13.83, allocations: 10.92 MB / 3.93 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/13.83, allocations: 5.312 kB / 3.93 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004097/13.83, allocations: 403.1 kB / 3.931 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002421/13.83, allocations: 384.7 kB / 3.931 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005162/13.83, allocations: 58.28 kB / 3.931 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/13.84, allocations: 2.574 MB / 3.933 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/13.84, allocations: 0 / 3.933 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/13.85, allocations: 7.222 MB / 3.941 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002516/13.85, allocations: 0.7482 MB / 3.941 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007385/13.86, allocations: 55.77 kB / 3.941 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002906/13.86, allocations: 200.4 kB / 3.941 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004471/13.86, allocations: 144.4 kB / 3.942 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/13.86, allocations: 65.64 kB / 3.942 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002668/13.86, allocations: 1.187 MB / 3.943 GB, free: 19.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.573e-06/13.86, allocations: 3.875 kB / 3.943 GB, free: 19.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01268/13.87, allocations: 2.769 MB / 3.946 GB, free: 19.56 MB / 0.5261 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.03171/13.91, allocations: 10.49 MB / 3.956 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01434/13.92, allocations: 5.281 MB / 3.961 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/13.92, allocations: 2.406 kB / 3.961 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005562/13.93, allocations: 2.443 MB / 3.963 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007898/13.93, allocations: 0.8747 MB / 3.964 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8526/14.79, allocations: 142 MB / 4.103 GB, free: 54.55 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002396/14.79, allocations: 2.259 MB / 4.105 GB, free: 53.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002926/14.79, allocations: 1.344 MB / 4.106 GB, free: 53.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.002e-06/14.79, allocations: 0 / 4.106 GB, free: 53.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.273/20.07, allocations: 128.5 MB / 4.232 GB, free: 1.793 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat