Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.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) 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(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 177.8 kB / 8.36 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.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001159/0.00116, allocations: 91.23 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.568e-05/1.575e-05, allocations: 0 / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3324, allocations: 47.55 MB / 362.3 MB, free: 45.81 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.22/8.553, allocations: 2.808 GB / 3.161 GB, free: 77.23 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/8.553, allocations: 85.27 kB / 3.162 GB, free: 77.2 MB / 427.1 MB [/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.786/12.34, allocations: 0.7414 GB / 3.903 GB, free: 6.285 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.094e-06/12.34, allocations: 0 / 3.903 GB, free: 6.285 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0002003/12.34, allocations: 39.91 kB / 3.903 GB, free: 6.25 MB / 459.1 MB 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.01698/12.36, allocations: 2.708 MB / 3.906 GB, free: 3.5 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/12.36, allocations: 12.03 kB / 3.906 GB, free: 3.488 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007048/12.36, allocations: 0.5953 MB / 3.906 GB, free: 2.891 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/12.37, allocations: 1.067 MB / 3.907 GB, free: 1.801 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/12.37, allocations: 44 kB / 3.907 GB, free: 1.758 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000441/12.37, allocations: 61.03 kB / 3.907 GB, free: 1.699 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3621/12.73, allocations: 1.755 MB / 3.909 GB, free: 37.74 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004086/12.73, allocations: 1.557 MB / 3.911 GB, free: 37.4 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/12.74, allocations: 3.562 kB / 3.911 GB, free: 37.4 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/12.74, allocations: 3.312 kB / 3.911 GB, free: 37.4 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/12.74, allocations: 88.7 kB / 3.911 GB, free: 37.39 MB / 459.1 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.5345/13.27, allocations: 167.3 MB / 4.074 GB, free: 13.12 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004581/13.27, allocations: 1.124 MB / 4.075 GB, free: 13.08 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/13.28, allocations: 0.5721 MB / 4.076 GB, free: 13.07 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4392/13.72, allocations: 16.89 MB / 4.092 GB, free: 109.4 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/13.72, allocations: 42.66 kB / 4.092 GB, free: 109.4 MB / 0.5265 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001801/13.72, allocations: 181.9 kB / 4.092 GB, free: 109.4 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=91): time 3.867e-06/13.72, allocations: 0 / 4.092 GB, free: 109.4 MB / 0.5265 GB Notification: Performance of matching and sorting (n=91): time 0.0139/13.73, allocations: 2.394 MB / 4.095 GB, free: 109.3 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/13.73, allocations: 214.7 kB / 4.095 GB, free: 109.1 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/13.73, allocations: 0.7504 MB / 4.096 GB, free: 108.9 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0002328/13.73, allocations: 25.7 kB / 4.096 GB, free: 108.9 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/13.73, allocations: 0.6304 MB / 4.096 GB, free: 108.6 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.000414/13.73, allocations: 309 kB / 4.097 GB, free: 108.4 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/13.73, allocations: 0 / 4.097 GB, free: 108.4 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001125/13.73, allocations: 358.7 kB / 4.097 GB, free: 108.1 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/13.74, allocations: 0.5329 MB / 4.097 GB, free: 108.1 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/13.74, allocations: 0.8916 MB / 4.098 GB, free: 107.7 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/13.75, allocations: 1.198 MB / 4.099 GB, free: 107.7 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-05/13.75, allocations: 2.281 kB / 4.099 GB, free: 107.7 MB / 0.5265 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01262/13.76, allocations: 2.238 MB / 4.102 GB, free: 107.6 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009123/13.76, allocations: 3.749 MB / 4.105 GB, free: 103.7 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.699e-05/13.76, allocations: 10.38 kB / 4.105 GB, free: 103.7 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01123/13.77, allocations: 1.051 MB / 4.106 GB, free: 103.7 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/13.77, allocations: 275.6 kB / 4.107 GB, free: 103.7 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007897/13.78, allocations: 1.78 MB / 4.108 GB, free: 103.2 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003527/13.79, allocations: 187.9 kB / 4.109 GB, free: 103.2 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003427/13.79, allocations: 74.41 kB / 4.109 GB, free: 103.2 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/13.79, allocations: 3.781 kB / 4.109 GB, free: 103.2 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01088/13.8, allocations: 1.757 MB / 4.11 GB, free: 103.1 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.37e-05/13.8, allocations: 9.656 kB / 4.11 GB, free: 103.1 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/13.8, allocations: 190.9 kB / 4.11 GB, free: 103.1 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/13.8, allocations: 350.7 kB / 4.111 GB, free: 103.1 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/13.8, allocations: 0.7561 MB / 4.112 GB, free: 102.6 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/13.81, allocations: 146.3 kB / 4.112 GB, free: 102.6 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000213/13.81, allocations: 66.94 kB / 4.112 GB, free: 102.6 MB / 0.5265 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.0005366/13.81, allocations: 153.5 kB / 4.112 GB, free: 102.5 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/13.81, allocations: 114.7 kB / 4.112 GB, free: 102.4 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/13.82, allocations: 3.866 MB / 4.116 GB, free: 102.2 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-05/13.82, allocations: 31.89 kB / 4.116 GB, free: 102.2 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/13.82, allocations: 0 / 4.116 GB, free: 102.2 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.371e-05/13.82, allocations: 8.219 kB / 4.116 GB, free: 102.2 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/13.84, allocations: 5.313 MB / 4.121 GB, free: 101.8 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/13.84, allocations: 1.875 kB / 4.121 GB, free: 101.8 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/13.84, allocations: 114.6 kB / 4.121 GB, free: 101.8 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007501/13.85, allocations: 2.501 MB / 4.124 GB, free: 101.7 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003075/13.85, allocations: 11.19 kB / 4.124 GB, free: 101.7 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008134/13.86, allocations: 2.873 MB / 4.126 GB, free: 101.1 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/13.86, allocations: 3.5 kB / 4.126 GB, free: 101.1 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/13.87, allocations: 3.099 MB / 4.129 GB, free: 100.7 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/13.87, allocations: 466.3 kB / 4.13 GB, free: 100.5 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000381/13.87, allocations: 7.031 kB / 4.13 GB, free: 100.5 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002052/13.87, allocations: 94.72 kB / 4.13 GB, free: 100.5 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/13.87, allocations: 69.11 kB / 4.13 GB, free: 100.5 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/13.87, allocations: 38.16 kB / 4.13 GB, free: 100.5 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.001697/13.87, allocations: 0.8291 MB / 4.131 GB, free: 100.4 MB / 0.5265 GB Notification: Performance of sort global known variables: time 1.423e-06/13.87, allocations: 6.625 kB / 4.131 GB, free: 100.4 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.009639/13.88, allocations: 1.872 MB / 4.133 GB, free: 100.3 MB / 0.5265 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.01298/13.9, allocations: 2.332 MB / 4.135 GB, free: 100.1 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.008283/13.91, allocations: 2.299 MB / 4.137 GB, free: 100 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/13.91, allocations: 0 / 4.137 GB, free: 100 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.002986/13.91, allocations: 0.8976 MB / 4.138 GB, free: 100 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004944/13.91, allocations: 484.1 kB / 4.139 GB, free: 100 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007904/13.92, allocations: 2.424 MB / 4.141 GB, free: 99.44 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/13.92, allocations: 1.388 MB / 4.142 GB, free: 98.72 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008425/13.92, allocations: 112.9 kB / 4.142 GB, free: 98.71 MB / 0.5265 GB Notification: Performance of SimCode: time 1.342e-06/13.92, allocations: 1.031 kB / 4.142 GB, free: 98.71 MB / 0.5265 GB Notification: Performance of Templates: time 0.1119/14.04, allocations: 52.14 MB / 4.193 GB, free: 94.63 MB / 0.5265 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1)