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.SeriesPipes13.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.465/2.465, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.307e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3594, allocations: 54.85 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.023/8.383, allocations: 2.657 GB / 3.007 GB, free: 91.67 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/8.383, allocations: 79.77 kB / 3.007 GB, free: 91.63 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.656/13.04, allocations: 0.8532 GB / 3.86 GB, free: 1.617 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.144e-06/13.04, allocations: 0 / 3.86 GB, free: 1.617 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003227/13.04, allocations: 67.7 kB / 3.861 GB, free: 1.555 MB / 0.5105 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.4465/13.49, allocations: 3.839 MB / 3.864 GB, free: 35.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/13.49, allocations: 9.156 kB / 3.864 GB, free: 35.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00959/13.5, allocations: 0.8402 MB / 3.865 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009345/13.5, allocations: 2.098 MB / 3.867 GB, free: 35.11 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/13.51, allocations: 95.56 kB / 3.867 GB, free: 35.11 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009438/13.51, allocations: 119.9 kB / 3.867 GB, free: 35.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007691/13.51, allocations: 2.528 MB / 3.87 GB, free: 35.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008481/13.52, allocations: 2.788 MB / 3.873 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.592e-05/13.52, allocations: 11.47 kB / 3.873 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/13.52, allocations: 5.875 kB / 3.873 GB, free: 34.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000319/13.52, allocations: 163.1 kB / 3.873 GB, free: 34.55 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.2831/13.81, allocations: 78.63 MB / 3.95 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004347/13.81, allocations: 1.63 MB / 3.951 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002335/13.81, allocations: 0.9788 MB / 3.952 GB, free: 26.13 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05579/13.87, allocations: 17.46 MB / 3.969 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002778/13.87, allocations: 1.162 MB / 3.97 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 5.25e-06/13.87, allocations: 3.344 kB / 3.97 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.03351/13.91, allocations: 7.972 MB / 3.978 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002394/13.91, allocations: 383 kB / 3.978 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/13.91, allocations: 1.127 MB / 3.98 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004802/13.91, allocations: 29.64 kB / 3.98 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009163/13.91, allocations: 0.979 MB / 3.98 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006926/13.91, allocations: 0.5423 MB / 3.981 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/13.91, allocations: 4 kB / 3.981 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002385/13.91, allocations: 392.3 kB / 3.981 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/13.91, allocations: 1.016 MB / 3.982 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/13.92, allocations: 1.499 MB / 3.984 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0232/13.94, allocations: 3.31 MB / 3.987 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.132e-05/13.94, allocations: 3.125 kB / 3.987 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03114/13.97, allocations: 5.436 MB / 3.992 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00293/13.97, allocations: 5.181 MB / 3.997 GB, free: 20.78 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/13.97, allocations: 12.84 kB / 3.997 GB, free: 20.78 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/13.99, allocations: 2.032 MB / 3.999 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/13.99, allocations: 309.1 kB / 4 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/14, allocations: 3.666 MB / 4.003 GB, free: 20.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004538/14, allocations: 255.3 kB / 4.004 GB, free: 20.11 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008167/14, allocations: 100.4 kB / 4.004 GB, free: 20.11 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/14, allocations: 3.625 kB / 4.004 GB, free: 20.11 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02796/14.03, allocations: 4.942 MB / 4.009 GB, free: 20 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-05/14.03, allocations: 25.19 kB / 4.009 GB, free: 19.99 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009514/14.04, allocations: 1.494 MB / 4.01 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003979/14.05, allocations: 359.5 kB / 4.01 GB, free: 19.94 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008748/14.06, allocations: 2.668 MB / 4.013 GB, free: 19.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005177/14.06, allocations: 233.9 kB / 4.013 GB, free: 19.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009233/14.06, allocations: 98.8 kB / 4.013 GB, free: 19.36 MB / 0.5573 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete 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.001327/14.06, allocations: 196.1 kB / 4.013 GB, free: 19.21 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01471/14.08, allocations: 2.491 MB / 4.016 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/14.08, allocations: 185.9 kB / 4.016 GB, free: 18.92 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02319/14.1, allocations: 6.829 MB / 4.023 GB, free: 18.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001556/14.1, allocations: 77.66 kB / 4.023 GB, free: 18.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/14.1, allocations: 0 / 4.023 GB, free: 18.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01856/14.12, allocations: 5.657 MB / 4.028 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03191/14.15, allocations: 9.238 MB / 4.037 GB, free: 17 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.554e-05/14.15, allocations: 0 / 4.037 GB, free: 17 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004992/14.16, allocations: 358.9 kB / 4.038 GB, free: 17 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0024/14.16, allocations: 344.2 kB / 4.038 GB, free: 16.95 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006404/14.16, allocations: 38.41 kB / 4.038 GB, free: 16.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003918/14.17, allocations: 2.684 MB / 4.041 GB, free: 14.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-05/14.17, allocations: 7.984 kB / 4.041 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02972/14.19, allocations: 6.399 MB / 4.047 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002847/14.2, allocations: 0.6985 MB / 4.048 GB, free: 10.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009734/14.2, allocations: 18.48 kB / 4.048 GB, free: 10.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003753/14.2, allocations: 155.8 kB / 4.048 GB, free: 10.33 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005436/14.2, allocations: 144.3 kB / 4.048 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002644/14.2, allocations: 66.31 kB / 4.048 GB, free: 10.21 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002661/14.21, allocations: 1.027 MB / 4.049 GB, free: 9.605 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.52e-07/14.21, allocations: 0 / 4.049 GB, free: 9.605 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02773/14.23, allocations: 2.634 MB / 4.052 GB, free: 7.41 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.06208/14.3, allocations: 10.08 MB / 4.061 GB, free: 1.074 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.5051/14.8, allocations: 4.915 MB / 4.066 GB, free: 80.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/14.8, allocations: 0.8438 kB / 4.066 GB, free: 80.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006991/14.81, allocations: 2.163 MB / 4.068 GB, free: 80.53 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01213/14.82, allocations: 0.7774 MB / 4.069 GB, free: 80.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03422/14.85, allocations: 7.022 MB / 4.076 GB, free: 79.39 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004582/14.86, allocations: 2.18 MB / 4.078 GB, free: 78.65 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004292/14.86, allocations: 1.221 MB / 4.079 GB, free: 78.65 MB / 0.5573 GB Notification: Performance of SimCode: time 3.156e-06/14.86, allocations: 0 / 4.079 GB, free: 78.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.25/20.11, allocations: 107.7 MB / 4.184 GB, free: 71.26 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat