Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.367/2.367, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.044e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3633, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.993/8.357, allocations: 2.648 GB / 2.998 GB, free: 104.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/8.357, allocations: 79.08 kB / 2.998 GB, free: 104.9 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.509/12.87, allocations: 0.737 GB / 3.735 GB, free: 38.29 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.763e-06/12.87, allocations: 0 / 3.735 GB, free: 38.29 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001324/12.87, allocations: 37.67 kB / 3.735 GB, free: 38.29 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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.01545/12.88, allocations: 2.719 MB / 3.738 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/12.88, allocations: 10.97 kB / 3.738 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006687/12.89, allocations: 0.596 MB / 3.738 GB, free: 36.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00392/12.89, allocations: 1.094 MB / 3.739 GB, free: 36.56 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/12.89, allocations: 44.94 kB / 3.739 GB, free: 36.56 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000287/12.89, allocations: 64.34 kB / 3.739 GB, free: 36.56 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004282/12.9, allocations: 1.738 MB / 3.741 GB, free: 36.55 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/12.9, allocations: 1.545 MB / 3.743 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/12.9, allocations: 3.75 kB / 3.743 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/12.9, allocations: 3.094 kB / 3.743 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001601/12.9, allocations: 85.2 kB / 3.743 GB, free: 36.21 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.9639/13.86, allocations: 136.7 MB / 3.876 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004113/13.87, allocations: 1.051 MB / 3.877 GB, free: 82.66 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/13.87, allocations: 0.5329 MB / 3.878 GB, free: 82.65 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05249/13.92, allocations: 17.41 MB / 3.895 GB, free: 71.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.934e-05/13.92, allocations: 40.84 kB / 3.895 GB, free: 71.73 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001822/13.92, allocations: 178.5 kB / 3.895 GB, free: 71.73 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 4.328e-06/13.92, allocations: 0 / 3.895 GB, free: 71.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=129): time 0.1127/14.04, allocations: 9.754 MB / 3.905 GB, free: 71.25 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/14.04, allocations: 220.8 kB / 3.905 GB, free: 71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/14.04, allocations: 0.7475 MB / 3.906 GB, free: 70.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004594/14.04, allocations: 25.7 kB / 3.906 GB, free: 70.81 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004517/14.04, allocations: 0.6469 MB / 3.906 GB, free: 70.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000682/14.04, allocations: 432 kB / 3.907 GB, free: 70.26 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/14.04, allocations: 1.125 kB / 3.907 GB, free: 70.26 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001326/14.04, allocations: 376 kB / 3.907 GB, free: 69.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002913/14.04, allocations: 1.268 MB / 3.908 GB, free: 69.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003227/14.05, allocations: 1.699 MB / 3.91 GB, free: 69.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/14.06, allocations: 1.893 MB / 3.912 GB, free: 69.44 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/14.06, allocations: 0 / 3.912 GB, free: 69.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.02002/14.08, allocations: 4.603 MB / 3.916 GB, free: 69.33 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001152/14.08, allocations: 4.794 MB / 3.921 GB, free: 64.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-05/14.08, allocations: 14.12 kB / 3.921 GB, free: 64.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02303/14.1, allocations: 3.966 MB / 3.925 GB, free: 64.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/14.11, allocations: 322.8 kB / 3.925 GB, free: 64.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/14.13, allocations: 5.755 MB / 3.931 GB, free: 63.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007006/14.13, allocations: 278 kB / 3.931 GB, free: 63.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004965/14.13, allocations: 129.7 kB / 3.931 GB, free: 63.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/14.13, allocations: 4.906 kB / 3.931 GB, free: 63.23 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01785/14.15, allocations: 2.906 MB / 3.934 GB, free: 63.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-05/14.15, allocations: 10.44 kB / 3.934 GB, free: 63.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004111/14.16, allocations: 0.5718 MB / 3.934 GB, free: 63.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003673/14.16, allocations: 454.3 kB / 3.935 GB, free: 63.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004421/14.16, allocations: 1.787 MB / 3.937 GB, free: 62.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/14.17, allocations: 186.5 kB / 3.937 GB, free: 62.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002802/14.17, allocations: 95.86 kB / 3.937 GB, free: 62.12 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,pump.heatTransfer.states[1].phase,source.medium.phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001006/14.17, allocations: 166.1 kB / 3.937 GB, free: 62.02 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01691/14.19, allocations: 4.113 MB / 3.941 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007948/14.19, allocations: 132.9 kB / 3.941 GB, free: 61.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0204/14.21, allocations: 6.674 MB / 3.948 GB, free: 61.49 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.776e-05/14.21, allocations: 37.5 kB / 3.948 GB, free: 61.49 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/14.21, allocations: 0 / 3.948 GB, free: 61.49 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.472e-05/14.21, allocations: 6.797 kB / 3.948 GB, free: 61.49 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02537/14.23, allocations: 8.999 MB / 3.957 GB, free: 60.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.293e-05/14.23, allocations: 3.094 kB / 3.957 GB, free: 60.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/14.23, allocations: 150.6 kB / 3.957 GB, free: 60.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01762/14.25, allocations: 5.242 MB / 3.962 GB, free: 60.81 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005178/14.25, allocations: 41.25 kB / 3.962 GB, free: 60.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02075/14.27, allocations: 6.893 MB / 3.969 GB, free: 59.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/14.27, allocations: 3.375 kB / 3.969 GB, free: 59.7 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01826/14.29, allocations: 5.646 MB / 3.974 GB, free: 59.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/14.29, allocations: 0.6278 MB / 3.975 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006609/14.29, allocations: 2.281 kB / 3.975 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005627/14.3, allocations: 200 kB / 3.975 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004713/14.3, allocations: 98.06 kB / 3.975 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003249/14.3, allocations: 65.44 kB / 3.975 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001637/14.3, allocations: 0.7869 MB / 3.976 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.81e-07/14.3, allocations: 2.531 kB / 3.976 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01124/14.31, allocations: 2.052 MB / 3.978 GB, free: 58.78 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.03054/14.34, allocations: 8.299 MB / 3.986 GB, free: 57.29 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02072/14.36, allocations: 4.788 MB / 3.991 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/14.36, allocations: 0 / 3.991 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01075/14.38, allocations: 2.171 MB / 3.993 GB, free: 57.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/14.38, allocations: 0.4891 MB / 3.993 GB, free: 57.19 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/14.4, allocations: 4.257 MB / 3.997 GB, free: 56.41 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/14.4, allocations: 1.455 MB / 3.999 GB, free: 55.69 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/14.4, allocations: 0.6553 MB / 3.999 GB, free: 55.68 MB / 0.5417 GB Notification: Performance of SimCode: time 9.62e-07/14.4, allocations: 0 / 3.999 GB, free: 55.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.127/19.52, allocations: 76.03 MB / 4.074 GB, free: 84.2 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat does not exist to compare? outputFormat=mat