Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9282/0.9282, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002004/0.002004, allocations: 163.3 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.854e-05, allocations: 0 / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05278/0.05282, allocations: 25.18 MB / 199 MB, free: 13.71 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.091/3.144, allocations: 1.434 GB / 1.629 GB, free: 20.62 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/3.144, allocations: 68.81 kB / 1.629 GB, free: 20.55 MB / 234.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Interfaces.mo:725:9-730:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Interfaces.mo:335:3-337: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 2.679/5.823, allocations: 0.6566 GB / 2.285 GB, free: 25.63 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.462e-06/5.823, allocations: 0 / 2.285 GB, free: 25.63 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001251/5.823, allocations: 39.31 kB / 2.285 GB, free: 25.62 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.01144/5.834, allocations: 2.509 MB / 2.288 GB, free: 24.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/5.834, allocations: 9.656 kB / 2.288 GB, free: 24.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005863/5.835, allocations: 156.2 kB / 2.288 GB, free: 24.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001996/5.837, allocations: 1.009 MB / 2.289 GB, free: 23.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.218e-05/5.837, allocations: 49.31 kB / 2.289 GB, free: 23.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/5.837, allocations: 58.53 kB / 2.289 GB, free: 23.94 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002633/5.84, allocations: 1.988 MB / 2.291 GB, free: 23.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/5.842, allocations: 1.639 MB / 2.293 GB, free: 23.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/5.842, allocations: 6.812 kB / 2.293 GB, free: 23.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/5.842, allocations: 3.062 kB / 2.293 GB, free: 23.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.303e-05/5.842, allocations: 77.8 kB / 2.293 GB, free: 23.61 MB / 282.7 MB 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.009903/5.852, allocations: 8.876 MB / 2.301 GB, free: 18.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/5.854, allocations: 1.123 MB / 2.302 GB, free: 18.49 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007427/5.855, allocations: 0.6301 MB / 2.303 GB, free: 18.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4839/6.338, allocations: 135.1 MB / 2.435 GB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/6.339, allocations: 46.69 kB / 2.435 GB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009048/6.339, allocations: 177.6 kB / 2.435 GB, free: 3.344 MB / 314.7 MB Notification: Performance of pre-optimization done (n=99): time 3.627e-06/6.339, allocations: 3.469 kB / 2.435 GB, free: 3.344 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.05029/6.39, allocations: 8.99 MB / 2.444 GB, free: 2.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/6.39, allocations: 222.6 kB / 2.444 GB, free: 2.539 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/6.391, allocations: 0.6433 MB / 2.445 GB, free: 2.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003407/6.391, allocations: 25.7 kB / 2.445 GB, free: 2.359 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/6.392, allocations: 0.5957 MB / 2.445 GB, free: 2.109 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004714/6.392, allocations: 481.8 kB / 2.446 GB, free: 1.793 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/6.392, allocations: 0 / 2.446 GB, free: 1.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/6.393, allocations: 369 kB / 2.446 GB, free: 1.488 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/6.394, allocations: 1.129 MB / 2.447 GB, free: 1.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/6.396, allocations: 1.554 MB / 2.449 GB, free: 0.9766 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006214/6.402, allocations: 1.851 MB / 2.451 GB, free: 0.9453 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/6.402, allocations: 3.344 kB / 2.451 GB, free: 0.9453 MB / 314.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.3262/6.728, allocations: 6.421 MB / 2.457 GB, free: 57.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.324e-05/6.728, allocations: 12.34 kB / 2.457 GB, free: 57.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.725e-05/6.728, allocations: 13.97 kB / 2.457 GB, free: 57.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01949/6.748, allocations: 3.206 MB / 2.46 GB, free: 57.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/6.751, allocations: 343.9 kB / 2.46 GB, free: 57.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01972/6.771, allocations: 9.794 MB / 2.47 GB, free: 51.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/6.775, allocations: 162.5 kB / 2.47 GB, free: 51.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/6.776, allocations: 124 kB / 2.47 GB, free: 51.03 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink2.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink1.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.source.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pipe2.flowModel.m_flows[1]:DUMMY_DER(fixed = false ) "mass flow rates between states" type: Real [1] $DER.pipe1.flowModel.rhos_act[1]:DUMMY_DER(fixed = false ) "Actual density 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 $DER.orifice.zeta_nominal:DUMMY_DER(fixed = false ) 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: 11 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,orifice.state_b.phase,orifice.state_a.phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {5 19,5 31,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001572/6.778, allocations: 178.2 kB / 2.47 GB, free: 50.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/6.779, allocations: 127.9 kB / 2.471 GB, free: 50.92 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03489/6.814, allocations: 7.975 MB / 2.478 GB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001249/6.814, allocations: 52.77 kB / 2.478 GB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.203e-05/6.814, allocations: 6.094 kB / 2.478 GB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.774e-05/6.815, allocations: 9.703 kB / 2.478 GB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03076/6.845, allocations: 10.81 MB / 2.489 GB, free: 49.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.912e-05/6.845, allocations: 4.062 kB / 2.489 GB, free: 49.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/6.847, allocations: 233.7 kB / 2.489 GB, free: 49.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01734/6.865, allocations: 4.421 MB / 2.493 GB, free: 49.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007679/6.866, allocations: 47.36 kB / 2.494 GB, free: 49.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02283/6.888, allocations: 10.87 MB / 2.504 GB, free: 43.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/6.888, allocations: 0 / 2.504 GB, free: 43.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02094/6.909, allocations: 6.032 MB / 2.51 GB, free: 43.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/6.912, allocations: 0.6058 MB / 2.511 GB, free: 42.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006183/6.913, allocations: 1.922 kB / 2.511 GB, free: 42.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003686/6.917, allocations: 159 kB / 2.511 GB, free: 42.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004571/6.917, allocations: 132.6 kB / 2.511 GB, free: 42.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003352/6.917, allocations: 71.64 kB / 2.511 GB, free: 42.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001211/6.919, allocations: 0.4893 MB / 2.511 GB, free: 42.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.074e-06/6.919, allocations: 0 / 2.511 GB, free: 42.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0121/6.931, allocations: 1.813 MB / 2.513 GB, free: 42.65 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($cse1.phase,$cse1.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse28.phase,$cse31.phase,$cse36.phase,$cse36.region,$cse39.phase,$cse39.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {5 17,1 1,6 42,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01685/6.948, allocations: 2.625 MB / 2.516 GB, free: 42.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.009469/6.957, allocations: 3.732 MB / 2.519 GB, free: 42.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/6.957, allocations: 0.7031 kB / 2.519 GB, free: 42.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006912/6.964, allocations: 2.709 MB / 2.522 GB, free: 42.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/6.968, allocations: 0.5509 MB / 2.523 GB, free: 42.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00657/6.974, allocations: 3.824 MB / 2.526 GB, free: 41.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/6.975, allocations: 1.503 MB / 2.528 GB, free: 40.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001639/6.977, allocations: 448.7 kB / 2.528 GB, free: 40.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000326/6.977, allocations: 127 kB / 2.528 GB, free: 40.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.593e-06/6.977, allocations: 2.062 kB / 2.528 GB, free: 40.84 MB / 314.7 MB Notification: Performance of Templates: time 0.3515/7.329, allocations: 78.76 MB / 2.605 GB, free: 53.31 MB / 314.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)