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/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.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.799/2.799, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.769e-05/4.791e-05, allocations: 7.984 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5431/0.5432, allocations: 54.84 MB / 364.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.198/8.741, allocations: 2.658 GB / 3.014 GB, free: 98.92 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/8.742, allocations: 79.58 kB / 3.014 GB, free: 98.88 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.957/13.7, allocations: 0.8606 GB / 3.875 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.495e-06/13.7, allocations: 0 / 3.875 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003885/13.7, allocations: 63.06 kB / 3.875 GB, free: 12.42 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.01989/13.72, allocations: 3.841 MB / 3.879 GB, free: 8.535 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/13.72, allocations: 16.03 kB / 3.879 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001331/13.72, allocations: 290.9 kB / 3.879 GB, free: 8.227 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009499/13.73, allocations: 0.84 MB / 3.88 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009721/13.74, allocations: 2.093 MB / 3.882 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003969/13.74, allocations: 187.7 kB / 3.882 GB, free: 5.051 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001164/13.74, allocations: 195.9 kB / 3.882 GB, free: 4.859 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/13.75, allocations: 3.561 MB / 3.886 GB, free: 1.094 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/13.75, allocations: 11.89 kB / 3.886 GB, free: 1.082 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004447/13.76, allocations: 91.89 kB / 3.886 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003687/13.76, allocations: 167.5 kB / 3.886 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4392/14.19, allocations: 3.16 MB / 3.889 GB, free: 31.8 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.03359/14.23, allocations: 15.04 MB / 3.904 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00808/14.24, allocations: 2.21 MB / 3.906 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002928/14.24, allocations: 1.047 MB / 3.907 GB, free: 22.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06024/14.3, allocations: 18.87 MB / 3.925 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006805/14.31, allocations: 1.644 MB / 3.927 GB, free: 27.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 1.171e-05/14.31, allocations: 1.25 kB / 3.927 GB, free: 27.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.04308/14.35, allocations: 6.928 MB / 3.934 GB, free: 26.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002501/14.35, allocations: 284.4 kB / 3.934 GB, free: 25.96 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004922/14.36, allocations: 1.398 MB / 3.935 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007781/14.36, allocations: 62.48 kB / 3.935 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001818/14.36, allocations: 0.9193 MB / 3.936 GB, free: 25.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001617/14.36, allocations: 0.5853 MB / 3.937 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005894/14.36, allocations: 41.5 kB / 3.937 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003333/14.36, allocations: 396.1 kB / 3.937 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003029/14.36, allocations: 1.047 MB / 3.938 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003663/14.37, allocations: 1.534 MB / 3.94 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003632/14.37, allocations: 1.281 MB / 3.941 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.062e-05/14.37, allocations: 3.938 kB / 3.941 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009854/14.38, allocations: 3.545 MB / 3.944 GB, free: 24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002414/14.38, allocations: 5.171 MB / 3.95 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.101e-05/14.38, allocations: 18.59 kB / 3.95 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02336/14.41, allocations: 2.765 MB / 3.952 GB, free: 18.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002403/14.41, allocations: 316.8 kB / 3.953 GB, free: 18.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008009/14.42, allocations: 3.302 MB / 3.956 GB, free: 18.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004329/14.42, allocations: 260.2 kB / 3.956 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007689/14.42, allocations: 102.4 kB / 3.956 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/14.42, allocations: 4.406 kB / 3.956 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01373/14.44, allocations: 3.256 MB / 3.959 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.865e-05/14.44, allocations: 12.81 kB / 3.959 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01676/14.45, allocations: 1.592 MB / 3.961 GB, free: 17.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/14.46, allocations: 352.6 kB / 3.961 GB, free: 17.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/14.47, allocations: 2.555 MB / 3.964 GB, free: 17.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004819/14.47, allocations: 262.5 kB / 3.964 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006125/14.47, allocations: 101 kB / 3.964 GB, free: 17.34 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 (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.0009904/14.47, allocations: 265 kB / 3.964 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006797/14.47, allocations: 200.6 kB / 3.964 GB, free: 17.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01526/14.49, allocations: 7.696 MB / 3.972 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/14.49, allocations: 93.56 kB / 3.972 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/14.49, allocations: 0 / 3.972 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0129/14.5, allocations: 6.586 MB / 3.979 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02715/14.53, allocations: 10.82 MB / 3.989 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/14.53, allocations: 0.7656 kB / 3.989 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005049/14.54, allocations: 398.5 kB / 3.989 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002937/14.54, allocations: 356.5 kB / 3.99 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006588/14.54, allocations: 66.19 kB / 3.99 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/14.54, allocations: 2.569 MB / 3.992 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/14.54, allocations: 6.562 kB / 3.992 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02013/14.56, allocations: 6.903 MB / 3.999 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003297/14.57, allocations: 0.7484 MB / 4 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001158/14.57, allocations: 52.89 kB / 4 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004531/14.57, allocations: 201.2 kB / 4 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000809/14.57, allocations: 144.3 kB / 4 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003439/14.57, allocations: 66.22 kB / 4 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003715/14.58, allocations: 1.169 MB / 4.001 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.92e-07/14.58, allocations: 0 / 4.001 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0164/14.59, allocations: 2.767 MB / 4.004 GB, free: 11.39 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.04214/14.64, allocations: 10.18 MB / 4.014 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01664/14.65, allocations: 5.061 MB / 4.019 GB, free: 9.465 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/14.65, allocations: 0 / 4.019 GB, free: 9.465 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005664/14.66, allocations: 2.367 MB / 4.021 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008149/14.67, allocations: 0.865 MB / 4.022 GB, free: 8.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8968/15.56, allocations: 129.6 MB / 4.149 GB, free: 73.19 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/15.57, allocations: 2.262 MB / 4.151 GB, free: 72.44 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00302/15.57, allocations: 1.321 MB / 4.152 GB, free: 72.44 MB / 0.5573 GB Notification: Performance of SimCode: time 1.944e-06/15.57, allocations: 0 / 4.152 GB, free: 72.44 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.473/21.04, allocations: 111.6 MB / 4.261 GB, free: 47.04 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