Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002693/0.002693, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 92.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3011/0.3011, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.982e-05, allocations: 0 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.414, allocations: 58.85 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.549/8.963, allocations: 2.817 GB / 3.283 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/8.964, allocations: 74.42 kB / 3.283 GB, free: 101.9 MB / 0.4952 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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 3.497/12.46, allocations: 0.7416 GB / 4.025 GB, free: 10.37 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.734e-06/12.46, allocations: 0 / 4.025 GB, free: 10.37 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0001436/12.46, allocations: 35.67 kB / 4.025 GB, free: 10.34 MB / 0.5265 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.0161/12.48, allocations: 2.719 MB / 4.028 GB, free: 7.582 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/12.48, allocations: 8.031 kB / 4.028 GB, free: 7.574 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00677/12.48, allocations: 0.5973 MB / 4.028 GB, free: 6.977 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004393/12.49, allocations: 1.071 MB / 4.029 GB, free: 5.883 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/12.49, allocations: 48.33 kB / 4.029 GB, free: 5.836 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006558/12.49, allocations: 63.95 kB / 4.029 GB, free: 5.773 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006031/12.5, allocations: 1.754 MB / 4.031 GB, free: 4.016 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00473/12.5, allocations: 1.55 MB / 4.033 GB, free: 2.336 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/12.5, allocations: 7.938 kB / 4.033 GB, free: 2.328 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00021/12.5, allocations: 4 kB / 4.033 GB, free: 2.324 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001958/12.5, allocations: 85.98 kB / 4.033 GB, free: 2.238 MB / 0.5265 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 1.04/13.54, allocations: 167.3 MB / 4.196 GB, free: 20.95 MB / 0.6046 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003649/13.54, allocations: 1.12 MB / 4.197 GB, free: 20.91 MB / 0.6046 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/13.55, allocations: 0.5745 MB / 4.198 GB, free: 20.89 MB / 0.6046 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05539/13.6, allocations: 16.9 MB / 4.214 GB, free: 25.91 MB / 0.6202 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.846e-05/13.6, allocations: 47.38 kB / 4.214 GB, free: 25.88 MB / 0.6202 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001869/13.6, allocations: 175.4 kB / 4.214 GB, free: 25.84 MB / 0.6202 GB Notification: Performance of pre-optimization done (n=91): time 5.09e-06/13.6, allocations: 0 / 4.214 GB, free: 25.84 MB / 0.6202 GB Notification: Performance of matching and sorting (n=91): time 0.0143/13.62, allocations: 2.402 MB / 4.217 GB, free: 25.71 MB / 0.6202 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/13.62, allocations: 212.7 kB / 4.217 GB, free: 25.46 MB / 0.6202 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/13.62, allocations: 0.745 MB / 4.218 GB, free: 25.31 MB / 0.6202 GB Notification: Performance of collectPreVariables (initialization): time 0.000386/13.62, allocations: 25.7 kB / 4.218 GB, free: 25.28 MB / 0.6202 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005221/13.62, allocations: 0.6365 MB / 4.218 GB, free: 24.96 MB / 0.6202 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005094/13.62, allocations: 313.3 kB / 4.219 GB, free: 24.8 MB / 0.6202 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/13.62, allocations: 0 / 4.219 GB, free: 24.8 MB / 0.6202 GB Notification: Performance of setup shared object (initialization): time 0.0001933/13.62, allocations: 355.3 kB / 4.219 GB, free: 24.49 MB / 0.6202 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/13.62, allocations: 0.5365 MB / 4.22 GB, free: 24.49 MB / 0.6202 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/13.62, allocations: 0.885 MB / 4.22 GB, free: 24.09 MB / 0.6202 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009464/13.63, allocations: 1.19 MB / 4.222 GB, free: 24.05 MB / 0.6202 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-05/13.63, allocations: 3.938 kB / 4.222 GB, free: 24.05 MB / 0.6202 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01284/13.65, allocations: 2.238 MB / 4.224 GB, free: 23.95 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 0.001661/13.65, allocations: 3.753 MB / 4.227 GB, free: 20.02 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.843e-05/13.65, allocations: 9.281 kB / 4.227 GB, free: 20.02 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01116/13.66, allocations: 1.054 MB / 4.228 GB, free: 19.96 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/13.66, allocations: 274.3 kB / 4.229 GB, free: 19.96 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007773/13.67, allocations: 1.782 MB / 4.23 GB, free: 19.41 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00364/13.67, allocations: 180.5 kB / 4.231 GB, free: 19.39 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/13.67, allocations: 72.61 kB / 4.231 GB, free: 19.39 MB / 0.6202 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/13.67, allocations: 12.66 kB / 4.231 GB, free: 19.39 MB / 0.6202 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01063/13.68, allocations: 1.759 MB / 4.232 GB, free: 19.34 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.359e-05/13.68, allocations: 9.188 kB / 4.232 GB, free: 19.34 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/13.69, allocations: 192.7 kB / 4.233 GB, free: 19.32 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003182/13.69, allocations: 349.5 kB / 4.233 GB, free: 19.32 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/13.69, allocations: 0.7588 MB / 4.234 GB, free: 18.8 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/13.69, allocations: 147.8 kB / 4.234 GB, free: 18.78 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005133/13.69, allocations: 72.53 kB / 4.234 GB, free: 18.78 MB / 0.6202 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (129): * Single equations (assignments): 128 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006739/13.7, allocations: 142.9 kB / 4.234 GB, free: 18.67 MB / 0.6202 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005464/13.7, allocations: 113 kB / 4.234 GB, free: 18.61 MB / 0.6202 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/13.71, allocations: 3.867 MB / 4.238 GB, free: 18.32 MB / 0.6202 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.191e-05/13.71, allocations: 37.5 kB / 4.238 GB, free: 18.32 MB / 0.6202 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/13.71, allocations: 2.906 kB / 4.238 GB, free: 18.32 MB / 0.6202 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.208e-05/13.71, allocations: 5.781 kB / 4.238 GB, free: 18.32 MB / 0.6202 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/13.73, allocations: 5.316 MB / 4.243 GB, free: 17.88 MB / 0.6202 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/13.73, allocations: 7.125 kB / 4.243 GB, free: 17.88 MB / 0.6202 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/13.73, allocations: 110.6 kB / 4.243 GB, free: 17.88 MB / 0.6202 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007752/13.74, allocations: 2.502 MB / 4.246 GB, free: 16.26 MB / 0.6202 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000333/13.74, allocations: 14.88 kB / 4.246 GB, free: 16.25 MB / 0.6202 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008293/13.75, allocations: 2.875 MB / 4.249 GB, free: 14.57 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/13.75, allocations: 4 kB / 4.249 GB, free: 14.56 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/13.76, allocations: 3.087 MB / 4.252 GB, free: 12.78 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/13.76, allocations: 468.2 kB / 4.252 GB, free: 12.49 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003389/13.76, allocations: 4 kB / 4.252 GB, free: 12.48 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/13.76, allocations: 97.27 kB / 4.252 GB, free: 12.42 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/13.76, allocations: 68.94 kB / 4.252 GB, free: 12.39 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/13.76, allocations: 42.25 kB / 4.252 GB, free: 12.36 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.00168/13.76, allocations: 0.8326 MB / 4.253 GB, free: 11.86 MB / 0.6202 GB Notification: Performance of sort global known variables: time 8.62e-07/13.76, allocations: 0.75 kB / 4.253 GB, free: 11.86 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.0102/13.77, allocations: 1.868 MB / 4.255 GB, free: 10.36 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01191/13.79, allocations: 2.335 MB / 4.257 GB, free: 8.742 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.007082/13.79, allocations: 2.291 MB / 4.259 GB, free: 7.477 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/13.79, allocations: 4 kB / 4.259 GB, free: 7.473 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.002493/13.79, allocations: 0.9023 MB / 4.26 GB, free: 6.992 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/13.8, allocations: 494.9 kB / 4.261 GB, free: 6.73 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006076/13.81, allocations: 2.42 MB / 4.263 GB, free: 4.945 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/13.81, allocations: 1.378 MB / 4.264 GB, free: 3.809 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007165/13.81, allocations: 118.1 kB / 4.265 GB, free: 3.715 MB / 0.6202 GB Notification: Performance of SimCode: time 9.72e-07/13.81, allocations: 1.094 kB / 4.265 GB, free: 3.715 MB / 0.6202 GB Notification: Performance of Templates: time 0.5271/14.33, allocations: 52.28 MB / 4.316 GB, free: 133.8 MB / 0.6202 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1)