Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.071/2.071, allocations: 209.2 MB / 224.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004412/0.0004413, allocations: 12 kB / 282.7 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 48.72 MB / 331.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.044/8.153, allocations: 2.547 GB / 2.871 GB, free: 59.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/8.154, allocations: 87.17 kB / 2.871 GB, free: 59.41 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.972/13.13, allocations: 0.7799 GB / 3.651 GB, free: 30.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.887e-06/13.13, allocations: 0 / 3.651 GB, free: 30.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003962/13.13, allocations: 62.25 kB / 3.651 GB, free: 30.27 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.0218/13.15, allocations: 4.03 MB / 3.655 GB, free: 28.47 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.132e-05/13.15, allocations: 10.84 kB / 3.655 GB, free: 28.47 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/13.15, allocations: 289.7 kB / 3.655 GB, free: 28.43 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009663/13.16, allocations: 0.8186 MB / 3.656 GB, free: 28.29 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/13.17, allocations: 2.105 MB / 3.658 GB, free: 27.85 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004298/13.17, allocations: 183.7 kB / 3.658 GB, free: 27.85 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/13.17, allocations: 190.2 kB / 3.659 GB, free: 27.85 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/13.19, allocations: 3.573 MB / 3.662 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.961e-05/13.19, allocations: 11.28 kB / 3.662 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005259/13.19, allocations: 88.58 kB / 3.662 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003195/13.19, allocations: 160.4 kB / 3.662 GB, free: 27.31 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/13.2, allocations: 3.288 MB / 3.665 GB, free: 27.3 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03221/13.23, allocations: 15.04 MB / 3.68 GB, free: 18.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009095/13.24, allocations: 2.304 MB / 3.682 GB, free: 18.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05821/13.3, allocations: 18.78 MB / 3.701 GB, free: 22.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006831/13.31, allocations: 1.64 MB / 3.702 GB, free: 22.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.49e-06/13.31, allocations: 0.875 kB / 3.702 GB, free: 22.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.04148/13.35, allocations: 8.869 MB / 3.711 GB, free: 21.41 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/13.35, allocations: 282.2 kB / 3.711 GB, free: 21.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/13.35, allocations: 1.41 MB / 3.713 GB, free: 20.93 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005851/13.35, allocations: 56.64 kB / 3.713 GB, free: 20.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/13.35, allocations: 0.9263 MB / 3.714 GB, free: 20.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/13.35, allocations: 0.5808 MB / 3.714 GB, free: 20.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000251/13.35, allocations: 38.44 kB / 3.714 GB, free: 20.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002664/13.36, allocations: 396.3 kB / 3.715 GB, free: 19.74 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/13.36, allocations: 1.151 MB / 3.716 GB, free: 19.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004388/13.36, allocations: 1.638 MB / 3.717 GB, free: 19.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/13.37, allocations: 1.379 MB / 3.719 GB, free: 19.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-05/13.37, allocations: 3.125 kB / 3.719 GB, free: 19.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01105/13.38, allocations: 3.222 MB / 3.722 GB, free: 18.94 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002177/13.38, allocations: 5.182 MB / 3.727 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.801e-05/13.38, allocations: 17.58 kB / 3.727 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/13.38, allocations: 276.3 kB / 3.727 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004354/13.39, allocations: 0.5172 MB / 3.728 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/13.39, allocations: 2.499 MB / 3.73 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/13.39, allocations: 255.4 kB / 3.73 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006176/13.39, allocations: 104.8 kB / 3.73 GB, free: 11.44 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/13.39, allocations: 4.312 kB / 3.73 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01051/13.4, allocations: 3.07 MB / 3.733 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.275e-05/13.41, allocations: 11.22 kB / 3.733 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/13.41, allocations: 280.1 kB / 3.734 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004287/13.41, allocations: 0.5068 MB / 3.734 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002345/13.41, allocations: 2.505 MB / 3.737 GB, free: 9.227 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/13.42, allocations: 267.6 kB / 3.737 GB, free: 9.207 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005633/13.42, allocations: 99.33 kB / 3.737 GB, free: 9.207 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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 () * Number of clocked 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.002558/13.42, allocations: 0.7235 MB / 3.738 GB, free: 8.977 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007018/13.42, allocations: 193.3 kB / 3.738 GB, free: 8.879 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/13.44, allocations: 7.781 MB / 3.746 GB, free: 8.105 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/13.44, allocations: 95.64 kB / 3.746 GB, free: 8.102 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/13.44, allocations: 5.531 kB / 3.746 GB, free: 8.102 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01393/13.45, allocations: 6.67 MB / 3.752 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02468/13.48, allocations: 10.91 MB / 3.763 GB, free: 6.531 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.131e-05/13.48, allocations: 3.375 kB / 3.763 GB, free: 6.531 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003436/13.48, allocations: 399.2 kB / 3.763 GB, free: 6.531 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002397/13.48, allocations: 380.8 kB / 3.764 GB, free: 6.488 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005628/13.48, allocations: 63.91 kB / 3.764 GB, free: 6.488 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/13.49, allocations: 2.574 MB / 3.766 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/13.49, allocations: 3.031 kB / 3.766 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/13.5, allocations: 7.223 MB / 3.773 GB, free: 19.78 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002483/13.51, allocations: 0.7511 MB / 3.774 GB, free: 19.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009795/13.51, allocations: 49.84 kB / 3.774 GB, free: 19.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003557/13.51, allocations: 198.4 kB / 3.774 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007555/13.51, allocations: 147.9 kB / 3.774 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/13.51, allocations: 67.42 kB / 3.774 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003025/13.51, allocations: 1.189 MB / 3.776 GB, free: 19.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.793e-06/13.51, allocations: 0 / 3.776 GB, free: 19.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01424/13.53, allocations: 2.749 MB / 3.778 GB, free: 18.52 MB / 0.4948 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * 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.03364/13.56, allocations: 10.47 MB / 3.788 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01565/13.58, allocations: 5.235 MB / 3.794 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/13.58, allocations: 0 / 3.794 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00595/13.58, allocations: 2.412 MB / 3.796 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007845/13.59, allocations: 0.8688 MB / 3.797 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8839/14.48, allocations: 139.8 MB / 3.933 GB, free: 35.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/14.48, allocations: 2.255 MB / 3.935 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003291/14.48, allocations: 1.337 MB / 3.937 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of SimCode: time 1.323e-06/14.48, allocations: 0 / 3.937 GB, free: 34.35 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.87/20.35, allocations: 128.1 MB / 4.062 GB, free: 46.23 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat