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.328/2.328, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.727e-05, allocations: 7.984 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4004, allocations: 54.84 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.235/8.635, allocations: 2.658 GB / 3.014 GB, free: 101.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/8.635, allocations: 79.83 kB / 3.014 GB, free: 101 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.692/13.33, allocations: 0.7972 GB / 3.811 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.434e-06/13.33, allocations: 0 / 3.811 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003496/13.33, allocations: 68.34 kB / 3.811 GB, free: 27.34 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.01868/13.35, allocations: 3.848 MB / 3.815 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/13.35, allocations: 10.59 kB / 3.815 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001358/13.35, allocations: 291.5 kB / 3.815 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/13.36, allocations: 0.8436 MB / 3.816 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009146/13.37, allocations: 2.09 MB / 3.818 GB, free: 24.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004037/13.37, allocations: 179.7 kB / 3.818 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/13.37, allocations: 197.1 kB / 3.819 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/13.38, allocations: 3.56 MB / 3.822 GB, free: 24.15 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.854e-05/13.38, allocations: 11.62 kB / 3.822 GB, free: 24.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004821/13.38, allocations: 90.22 kB / 3.822 GB, free: 24.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003203/13.38, allocations: 167.5 kB / 3.822 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/13.4, allocations: 3.167 MB / 3.826 GB, free: 23.82 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.0313/13.43, allocations: 15.07 MB / 3.84 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007549/13.43, allocations: 2.215 MB / 3.842 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/13.44, allocations: 1.048 MB / 3.843 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06013/13.5, allocations: 18.88 MB / 3.862 GB, free: 13.01 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006211/13.5, allocations: 1.645 MB / 3.863 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.282e-06/13.5, allocations: 0 / 3.863 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03582/13.54, allocations: 7.542 MB / 3.871 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/13.54, allocations: 282 kB / 3.871 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003699/13.54, allocations: 1.393 MB / 3.872 GB, free: 3.805 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006157/13.54, allocations: 57.7 kB / 3.873 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001315/13.55, allocations: 0.9213 MB / 3.873 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001172/13.55, allocations: 0.5839 MB / 3.874 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/13.55, allocations: 40 kB / 3.874 GB, free: 2.309 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002374/13.55, allocations: 400.1 kB / 3.874 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/13.55, allocations: 1.038 MB / 3.875 GB, free: 1.008 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003711/13.55, allocations: 1.536 MB / 3.877 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/13.56, allocations: 1.279 MB / 3.878 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/13.56, allocations: 4 kB / 3.878 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009732/13.57, allocations: 2.982 MB / 3.881 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002303/13.57, allocations: 5.176 MB / 3.886 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.302e-05/13.57, allocations: 12 kB / 3.886 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/13.57, allocations: 263.2 kB / 3.886 GB, free: 5.887 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004609/13.58, allocations: 0.5172 MB / 3.887 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/13.58, allocations: 2.495 MB / 3.889 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/13.58, allocations: 269.2 kB / 3.89 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007458/13.58, allocations: 99.59 kB / 3.89 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/13.58, allocations: 6.031 kB / 3.89 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009008/13.59, allocations: 2.835 MB / 3.892 GB, free: 164 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.183e-05/13.59, allocations: 12.94 kB / 3.892 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4327/14.03, allocations: 265.5 kB / 3.893 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004728/14.03, allocations: 0.507 MB / 3.893 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/14.03, allocations: 2.502 MB / 3.896 GB, free: 55.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003395/14.04, allocations: 255.7 kB / 3.896 GB, free: 55.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007/14.04, allocations: 99.59 kB / 3.896 GB, free: 55.81 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 () * 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.0009313/14.04, allocations: 270.8 kB / 3.896 GB, free: 55.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007579/14.04, allocations: 201 kB / 3.896 GB, free: 55.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0189/14.06, allocations: 7.693 MB / 3.904 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001524/14.06, allocations: 89.06 kB / 3.904 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/14.06, allocations: 1.375 kB / 3.904 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01432/14.07, allocations: 6.598 MB / 3.91 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0218/14.09, allocations: 10.81 MB / 3.921 GB, free: 53.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.095e-05/14.09, allocations: 4.219 kB / 3.921 GB, free: 53.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003399/14.1, allocations: 401 kB / 3.921 GB, free: 53.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/14.1, allocations: 355.2 kB / 3.922 GB, free: 53.63 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000529/14.1, allocations: 72.27 kB / 3.922 GB, free: 53.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/14.1, allocations: 2.568 MB / 3.924 GB, free: 51.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/14.1, allocations: 4.188 kB / 3.924 GB, free: 51.56 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/14.12, allocations: 6.899 MB / 3.931 GB, free: 50.97 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002552/14.12, allocations: 0.7505 MB / 3.932 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008699/14.12, allocations: 59.14 kB / 3.932 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003416/14.12, allocations: 193.6 kB / 3.932 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007169/14.12, allocations: 152 kB / 3.932 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/14.12, allocations: 67.41 kB / 3.932 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003014/14.13, allocations: 1.167 MB / 3.933 GB, free: 50.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.763e-06/14.13, allocations: 0 / 3.933 GB, free: 50.54 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0135/14.14, allocations: 2.776 MB / 3.936 GB, free: 50.5 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) * 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.03105/14.17, allocations: 10.16 MB / 3.946 GB, free: 49.16 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01366/14.19, allocations: 5.011 MB / 3.951 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/14.19, allocations: 3.969 kB / 3.951 GB, free: 48.89 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005727/14.19, allocations: 2.363 MB / 3.953 GB, free: 48.81 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008301/14.2, allocations: 0.8837 MB / 3.954 GB, free: 48.78 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3958/14.6, allocations: 129.4 MB / 4.08 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002937/14.6, allocations: 2.262 MB / 4.083 GB, free: 2.746 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003429/14.6, allocations: 1.348 MB / 4.084 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/14.6, allocations: 2.078 kB / 4.084 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.027/20.63, allocations: 131.4 MB / 4.212 GB, free: 50.32 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