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/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.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.264/2.264, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.104e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3672, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.043/8.41, allocations: 2.657 GB / 3.007 GB, free: 93.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/8.411, allocations: 74.34 kB / 3.007 GB, free: 93.13 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.708/13.12, allocations: 0.7905 GB / 3.798 GB, free: 31.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.284e-06/13.12, allocations: 0 / 3.798 GB, free: 31.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000292/13.12, allocations: 67.44 kB / 3.798 GB, free: 31.82 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.01856/13.14, allocations: 3.849 MB / 3.801 GB, free: 29.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/13.14, allocations: 9.531 kB / 3.801 GB, free: 29.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00945/13.15, allocations: 0.8505 MB / 3.802 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008287/13.16, allocations: 2.094 MB / 3.804 GB, free: 28.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/13.16, allocations: 88.19 kB / 3.804 GB, free: 28.53 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008606/13.16, allocations: 116.2 kB / 3.805 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007598/13.16, allocations: 2.538 MB / 3.807 GB, free: 27.64 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008319/13.17, allocations: 2.782 MB / 3.81 GB, free: 26.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.935e-05/13.17, allocations: 11.72 kB / 3.81 GB, free: 26.33 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003916/13.17, allocations: 7.219 kB / 3.81 GB, free: 26.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003127/13.17, allocations: 163.8 kB / 3.81 GB, free: 26.3 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.77/13.94, allocations: 78.76 MB / 3.887 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004558/13.95, allocations: 1.633 MB / 3.888 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002442/13.95, allocations: 0.9759 MB / 3.889 GB, free: 33.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05368/14, allocations: 17.45 MB / 3.906 GB, free: 22.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003015/14.01, allocations: 1.162 MB / 3.908 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 6.462e-06/14.01, allocations: 0 / 3.908 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.03667/14.04, allocations: 7.962 MB / 3.915 GB, free: 20.83 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/14.04, allocations: 384.8 kB / 3.916 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/14.05, allocations: 1.135 MB / 3.917 GB, free: 20.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005872/14.05, allocations: 28.92 kB / 3.917 GB, free: 20.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001065/14.05, allocations: 0.9766 MB / 3.918 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/14.05, allocations: 0.537 MB / 3.918 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/14.05, allocations: 1.938 kB / 3.918 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001721/14.05, allocations: 393.1 kB / 3.919 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/14.05, allocations: 1.013 MB / 3.92 GB, free: 19.17 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003057/14.06, allocations: 1.496 MB / 3.921 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02362/14.08, allocations: 3.311 MB / 3.924 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.542e-05/14.08, allocations: 4.844 kB / 3.924 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02857/14.11, allocations: 4.897 MB / 3.929 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001266/14.11, allocations: 5.171 MB / 3.934 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.179e-05/14.11, allocations: 12.94 kB / 3.934 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/14.11, allocations: 257.1 kB / 3.934 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004447/14.12, allocations: 0.5164 MB / 3.935 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002955/14.12, allocations: 2.525 MB / 3.937 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004326/14.12, allocations: 255 kB / 3.938 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000447/14.12, allocations: 102.3 kB / 3.938 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/14.12, allocations: 4.188 kB / 3.938 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02742/14.15, allocations: 4.562 MB / 3.942 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.414e-05/14.15, allocations: 17.14 kB / 3.942 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008872/14.15, allocations: 243.8 kB / 3.942 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004322/14.16, allocations: 0.5086 MB / 3.943 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/14.16, allocations: 2.522 MB / 3.945 GB, free: 24.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/14.16, allocations: 236.7 kB / 3.946 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003281/14.16, allocations: 105.4 kB / 3.946 GB, free: 24.48 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,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 (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.0007893/14.16, allocations: 202.3 kB / 3.946 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009073/14.17, allocations: 2.493 MB / 3.948 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006487/14.17, allocations: 184.4 kB / 3.949 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/14.19, allocations: 6.836 MB / 3.955 GB, free: 23.45 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.38e-05/14.19, allocations: 73.48 kB / 3.955 GB, free: 23.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/14.19, allocations: 3.219 kB / 3.955 GB, free: 23.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01133/14.2, allocations: 5.651 MB / 3.961 GB, free: 22.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02074/14.22, allocations: 9.243 MB / 3.97 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/14.22, allocations: 3 kB / 3.97 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003145/14.22, allocations: 363.5 kB / 3.97 GB, free: 22.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/14.22, allocations: 333.6 kB / 3.971 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004392/14.22, allocations: 43.61 kB / 3.971 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/14.23, allocations: 2.689 MB / 3.973 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-06/14.23, allocations: 2.469 kB / 3.973 GB, free: 20.03 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/14.24, allocations: 6.409 MB / 3.979 GB, free: 19.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002412/14.24, allocations: 0.6918 MB / 3.98 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007518/14.24, allocations: 18.31 kB / 3.98 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/14.25, allocations: 159 kB / 3.98 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004656/14.25, allocations: 133.7 kB / 3.98 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002205/14.25, allocations: 64.02 kB / 3.98 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002187/14.25, allocations: 1.031 MB / 3.981 GB, free: 18.99 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.41e-07/14.25, allocations: 3.844 kB / 3.981 GB, free: 18.99 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01257/14.26, allocations: 2.634 MB / 3.984 GB, free: 18.86 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.02912/14.29, allocations: 10.09 MB / 3.994 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01081/14.3, allocations: 4.661 MB / 3.998 GB, free: 16.93 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/14.3, allocations: 0 / 3.998 GB, free: 16.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004722/14.31, allocations: 2.159 MB / 4.001 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007142/14.31, allocations: 0.7702 MB / 4.001 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02098/14.34, allocations: 7.031 MB / 4.008 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/14.34, allocations: 2.17 MB / 4.01 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002993/14.34, allocations: 1.248 MB / 4.012 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of SimCode: time 1.783e-06/14.34, allocations: 4 kB / 4.012 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.13/20.47, allocations: 126.6 MB / 4.135 GB, free: 73.39 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