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/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.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.434/2.434, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006372/0.0006367, allocations: 16 kB / 314.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3879, allocations: 54.85 MB / 369.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.127/8.515, allocations: 2.658 GB / 3.019 GB, free: 59.77 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/8.515, allocations: 92.2 kB / 3.019 GB, free: 59.72 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.248/12.76, allocations: 0.8006 GB / 3.819 GB, free: 6.176 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.406e-06/12.76, allocations: 11.94 kB / 3.82 GB, free: 6.164 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003414/12.76, allocations: 63.27 kB / 3.82 GB, free: 6.105 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.02003/12.78, allocations: 4.128 MB / 3.824 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/12.78, allocations: 12.03 kB / 3.824 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001582/12.79, allocations: 291.3 kB / 3.824 GB, free: 1.605 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009093/12.79, allocations: 0.8477 MB / 3.825 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008687/12.8, allocations: 2.111 MB / 3.827 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000333/12.8, allocations: 183.7 kB / 3.827 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008384/12.8, allocations: 199.9 kB / 3.827 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/12.82, allocations: 3.581 MB / 3.831 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.334e-05/12.82, allocations: 11.92 kB / 3.831 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004803/12.82, allocations: 79.97 kB / 3.831 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000377/12.82, allocations: 167.3 kB / 3.831 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01415/12.83, allocations: 3.293 MB / 3.834 GB, free: 6.879 MB / 0.5105 GB 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.4858/13.32, allocations: 15.03 MB / 3.849 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/13.33, allocations: 2.299 MB / 3.851 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06042/13.39, allocations: 18.81 MB / 3.869 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006992/13.4, allocations: 1.639 MB / 3.871 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.941e-06/13.4, allocations: 0 / 3.871 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03549/13.44, allocations: 8.179 MB / 3.879 GB, free: 18.88 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/13.44, allocations: 284.7 kB / 3.879 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/13.44, allocations: 1.416 MB / 3.881 GB, free: 18.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006035/13.44, allocations: 55.11 kB / 3.881 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001145/13.44, allocations: 0.9214 MB / 3.882 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001125/13.44, allocations: 0.5879 MB / 3.882 GB, free: 17.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/13.44, allocations: 43.77 kB / 3.882 GB, free: 17.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001975/13.44, allocations: 393.8 kB / 3.883 GB, free: 17.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003892/13.45, allocations: 1.147 MB / 3.884 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004499/13.45, allocations: 1.645 MB / 3.885 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004533/13.46, allocations: 1.388 MB / 3.887 GB, free: 16.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.704e-05/13.46, allocations: 3.719 kB / 3.887 GB, free: 16.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01314/13.47, allocations: 3.83 MB / 3.89 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002779/13.47, allocations: 5.177 MB / 3.895 GB, free: 27.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.501e-05/13.47, allocations: 15.28 kB / 3.895 GB, free: 27.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02486/13.5, allocations: 2.926 MB / 3.898 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/13.5, allocations: 313.8 kB / 3.899 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/13.51, allocations: 3.505 MB / 3.902 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00417/13.51, allocations: 261.9 kB / 3.902 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007504/13.51, allocations: 102.5 kB / 3.902 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/13.51, allocations: 4.062 kB / 3.902 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01271/13.53, allocations: 3.53 MB / 3.906 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.949e-05/13.53, allocations: 16.36 kB / 3.906 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01152/13.54, allocations: 1.716 MB / 3.908 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/13.54, allocations: 357.9 kB / 3.908 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007452/13.55, allocations: 2.743 MB / 3.911 GB, free: 25.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003332/13.55, allocations: 262.2 kB / 3.911 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006851/13.55, allocations: 102.6 kB / 3.911 GB, free: 25.97 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 () * Number of clocked 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.002544/13.56, allocations: 0.7169 MB / 3.912 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006905/13.56, allocations: 207.5 kB / 3.912 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/13.58, allocations: 7.763 MB / 3.919 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001077/13.58, allocations: 89.47 kB / 3.919 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/13.58, allocations: 3.75 kB / 3.919 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0146/13.59, allocations: 6.666 MB / 3.926 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02572/13.62, allocations: 10.93 MB / 3.937 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/13.62, allocations: 2.188 kB / 3.937 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003338/13.62, allocations: 405.4 kB / 3.937 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002382/13.62, allocations: 377.8 kB / 3.937 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005669/13.62, allocations: 66.55 kB / 3.937 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/13.62, allocations: 2.575 MB / 3.94 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/13.62, allocations: 0 / 3.94 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/13.64, allocations: 7.223 MB / 3.947 GB, free: 20.65 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002473/13.64, allocations: 0.7469 MB / 3.948 GB, free: 20.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008136/13.64, allocations: 52.58 kB / 3.948 GB, free: 20.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003115/13.65, allocations: 196.4 kB / 3.948 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006326/13.65, allocations: 145.4 kB / 3.948 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003143/13.65, allocations: 70.48 kB / 3.948 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002855/13.65, allocations: 1.189 MB / 3.949 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/13.65, allocations: 0 / 3.949 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01369/13.67, allocations: 2.766 MB / 3.952 GB, free: 20.04 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) * 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.03295/13.7, allocations: 10.48 MB / 3.962 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0159/13.71, allocations: 5.386 MB / 3.968 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/13.71, allocations: 0 / 3.968 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005709/13.72, allocations: 2.442 MB / 3.97 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007786/13.73, allocations: 0.8787 MB / 3.971 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9024/14.63, allocations: 142.2 MB / 4.11 GB, free: 51.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005447/14.64, allocations: 2.259 MB / 4.112 GB, free: 50.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004892/14.64, allocations: 1.325 MB / 4.113 GB, free: 50.32 MB / 0.5417 GB Notification: Performance of SimCode: time 2.013e-06/14.64, allocations: 0 / 4.113 GB, free: 50.32 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.217/19.86, allocations: 108.7 MB / 4.219 GB, free: 13.51 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