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.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.529/2.529, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.597e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3693, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.264/8.633, allocations: 2.657 GB / 3.007 GB, free: 92.08 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/8.633, allocations: 73.09 kB / 3.007 GB, free: 92.04 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.443/13.08, allocations: 0.7917 GB / 3.799 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.495e-06/13.08, allocations: 0 / 3.799 GB, free: 32.45 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003734/13.08, allocations: 67.8 kB / 3.799 GB, free: 32.44 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.01905/13.1, allocations: 3.844 MB / 3.803 GB, free: 30.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/13.1, allocations: 11.16 kB / 3.803 GB, free: 30.32 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009152/13.1, allocations: 0.8477 MB / 3.804 GB, free: 30.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00961/13.11, allocations: 2.098 MB / 3.806 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/13.11, allocations: 93.72 kB / 3.806 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001165/13.12, allocations: 113.1 kB / 3.806 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01004/13.13, allocations: 2.531 MB / 3.808 GB, free: 28.26 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01953/13.15, allocations: 2.793 MB / 3.811 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/13.15, allocations: 7.875 kB / 3.811 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005081/13.15, allocations: 3.938 kB / 3.811 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004353/13.15, allocations: 169.5 kB / 3.811 GB, free: 26.92 MB / 0.4948 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.7479/13.89, allocations: 78.62 MB / 3.888 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004299/13.9, allocations: 1.636 MB / 3.89 GB, free: 33.56 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/13.9, allocations: 0.9859 MB / 3.891 GB, free: 33.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05312/13.95, allocations: 17.45 MB / 3.908 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002905/13.96, allocations: 1.16 MB / 3.909 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 6.192e-06/13.96, allocations: 2.297 kB / 3.909 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.03635/13.99, allocations: 7.962 MB / 3.916 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/13.99, allocations: 388.8 kB / 3.917 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/14, allocations: 1.133 MB / 3.918 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005901/14, allocations: 29.64 kB / 3.918 GB, free: 20.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001274/14, allocations: 0.9698 MB / 3.919 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001112/14, allocations: 0.5418 MB / 3.919 GB, free: 19.53 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/14, allocations: 3.75 kB / 3.919 GB, free: 19.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001946/14, allocations: 388.2 kB / 3.92 GB, free: 19.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002524/14, allocations: 1.017 MB / 3.921 GB, free: 19.21 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/14.01, allocations: 1.5 MB / 3.922 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02385/14.03, allocations: 3.31 MB / 3.926 GB, free: 18.58 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-05/14.03, allocations: 8.344 kB / 3.926 GB, free: 18.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03057/14.06, allocations: 5.431 MB / 3.931 GB, free: 18.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001267/14.06, allocations: 5.177 MB / 3.936 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-05/14.06, allocations: 17.5 kB / 3.936 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/14.08, allocations: 2.025 MB / 3.938 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002335/14.08, allocations: 325.4 kB / 3.938 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009966/14.09, allocations: 3.661 MB / 3.942 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004512/14.09, allocations: 251.9 kB / 3.942 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008906/14.09, allocations: 108.1 kB / 3.942 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/14.09, allocations: 3.062 kB / 3.942 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02808/14.12, allocations: 4.939 MB / 3.947 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.128e-05/14.12, allocations: 13.38 kB / 3.947 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009387/14.13, allocations: 1.496 MB / 3.948 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/14.13, allocations: 365.1 kB / 3.949 GB, free: 12.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00527/14.14, allocations: 2.668 MB / 3.951 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003434/14.14, allocations: 233.3 kB / 3.952 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004319/14.14, allocations: 96.92 kB / 3.952 GB, free: 11.56 MB / 0.5105 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.000804/14.14, allocations: 199.3 kB / 3.952 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009728/14.15, allocations: 2.494 MB / 3.954 GB, free: 11.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008648/14.16, allocations: 186 kB / 3.954 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/14.17, allocations: 6.844 MB / 3.961 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-05/14.17, allocations: 74.8 kB / 3.961 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/14.17, allocations: 3.906 kB / 3.961 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01211/14.18, allocations: 5.644 MB / 3.967 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02131/14.2, allocations: 9.249 MB / 3.976 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.762e-05/14.2, allocations: 3.75 kB / 3.976 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/14.21, allocations: 356.5 kB / 3.976 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/14.21, allocations: 338.5 kB / 3.976 GB, free: 25.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00058/14.21, allocations: 40.94 kB / 3.977 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/14.21, allocations: 2.678 MB / 3.979 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/14.21, allocations: 3.953 kB / 3.979 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/14.23, allocations: 6.406 MB / 3.985 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/14.23, allocations: 0.6913 MB / 3.986 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008899/14.23, allocations: 20.58 kB / 3.986 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003495/14.23, allocations: 157.6 kB / 3.986 GB, free: 22.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007413/14.24, allocations: 136.6 kB / 3.986 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/14.24, allocations: 66.59 kB / 3.986 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002498/14.24, allocations: 1.027 MB / 3.987 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/14.24, allocations: 0 / 3.987 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01517/14.25, allocations: 2.642 MB / 3.99 GB, free: 21.95 MB / 0.5261 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.0323/14.29, allocations: 10.09 MB / 4 GB, free: 20.24 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01269/14.3, allocations: 4.725 MB / 4.004 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/14.3, allocations: 4.438 kB / 4.004 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005386/14.3, allocations: 2.167 MB / 4.007 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008158/14.31, allocations: 0.7684 MB / 4.007 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02285/14.34, allocations: 7.015 MB / 4.014 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/14.34, allocations: 2.177 MB / 4.016 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002632/14.34, allocations: 1.218 MB / 4.018 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of SimCode: time 2.094e-06/14.34, allocations: 0 / 4.018 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.922/20.26, allocations: 107.8 MB / 4.123 GB, free: 72.73 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat