Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002098/0.002098, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 93.05 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004764, allocations: 8 kB / 351.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3529, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.008/7.361, allocations: 2.813 GB / 3.206 GB, free: 128 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/7.362, allocations: 81.69 kB / 3.206 GB, free: 128 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 2.9/10.26, allocations: 0.7582 GB / 3.964 GB, free: 32.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.453e-06/10.26, allocations: 0 / 3.964 GB, free: 32.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001875/10.26, allocations: 37.47 kB / 3.964 GB, free: 32.32 MB / 474.7 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.01455/10.28, allocations: 2.878 MB / 3.967 GB, free: 30.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/10.28, allocations: 7.219 kB / 3.967 GB, free: 30.86 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009857/10.28, allocations: 173.3 kB / 3.967 GB, free: 30.82 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005223/10.28, allocations: 0.6081 MB / 3.967 GB, free: 30.74 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/10.29, allocations: 1.082 MB / 3.968 GB, free: 30.41 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/10.29, allocations: 88.17 kB / 3.969 GB, free: 30.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005675/10.29, allocations: 105.3 kB / 3.969 GB, free: 30.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007013/10.29, allocations: 2.282 MB / 3.971 GB, free: 30.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/10.29, allocations: 5.625 kB / 3.971 GB, free: 30.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/10.29, allocations: 49.53 kB / 3.971 GB, free: 30.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/10.29, allocations: 84.11 kB / 3.971 GB, free: 30.05 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006063/10.3, allocations: 2.395 MB / 3.973 GB, free: 30.04 MB / 474.7 MB 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.01531/10.32, allocations: 9.214 MB / 3.982 GB, free: 25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004841/10.32, allocations: 1.899 MB / 3.984 GB, free: 24.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04489/10.37, allocations: 24.43 MB / 4.008 GB, free: 25.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.213e-05/10.37, allocations: 47.75 kB / 4.008 GB, free: 25.56 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001737/10.37, allocations: 213.7 kB / 4.008 GB, free: 25.49 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 9.909e-06/10.37, allocations: 0 / 4.008 GB, free: 25.49 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.01914/10.39, allocations: 4.464 MB / 4.013 GB, free: 25.19 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/10.39, allocations: 220.7 kB / 4.013 GB, free: 24.94 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/10.39, allocations: 0.8358 MB / 4.014 GB, free: 24.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/10.39, allocations: 45.33 kB / 4.014 GB, free: 24.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006176/10.39, allocations: 0.5575 MB / 4.014 GB, free: 24.51 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004864/10.39, allocations: 377.9 kB / 4.015 GB, free: 24.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/10.39, allocations: 23.5 kB / 4.015 GB, free: 24.27 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/10.39, allocations: 354.4 kB / 4.015 GB, free: 23.97 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/10.39, allocations: 0.6534 MB / 4.016 GB, free: 23.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/10.39, allocations: 1.005 MB / 4.017 GB, free: 23.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/10.4, allocations: 0.7679 MB / 4.017 GB, free: 23.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/10.4, allocations: 3.531 kB / 4.017 GB, free: 23.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004065/10.4, allocations: 2.077 MB / 4.019 GB, free: 23.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001823/10.4, allocations: 3.755 MB / 4.023 GB, free: 19.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/10.4, allocations: 7.281 kB / 4.023 GB, free: 19.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02931/10.43, allocations: 3.021 MB / 4.026 GB, free: 19.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/10.43, allocations: 279.2 kB / 4.026 GB, free: 19.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/10.43, allocations: 1.452 MB / 4.028 GB, free: 18.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/10.44, allocations: 147.5 kB / 4.028 GB, free: 18.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/10.44, allocations: 68.86 kB / 4.028 GB, free: 18.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/10.44, allocations: 5.062 kB / 4.028 GB, free: 18.74 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003919/10.44, allocations: 1.792 MB / 4.03 GB, free: 18.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/10.44, allocations: 9.5 kB / 4.03 GB, free: 18.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008029/10.44, allocations: 202.5 kB / 4.03 GB, free: 18.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/10.44, allocations: 342.5 kB / 4.03 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008931/10.44, allocations: 0.7457 MB / 4.031 GB, free: 18.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/10.45, allocations: 143.2 kB / 4.031 GB, free: 18.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/10.45, allocations: 68.66 kB / 4.031 GB, free: 18.13 MB / 490.7 MB 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,source.medium.phase,pump.heatTransfer.states[1].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 () * Number of clocked 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.0008855/10.45, allocations: 434.2 kB / 4.032 GB, free: 17.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/10.45, allocations: 136.2 kB / 4.032 GB, free: 17.86 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007343/10.45, allocations: 5.663 MB / 4.037 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-05/10.45, allocations: 61.53 kB / 4.037 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/10.45, allocations: 3.125 kB / 4.037 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/10.45, allocations: 8.719 kB / 4.037 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00953/10.46, allocations: 7.709 MB / 4.045 GB, free: 16.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/10.46, allocations: 2.25 kB / 4.045 GB, free: 16.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/10.46, allocations: 207.4 kB / 4.045 GB, free: 16.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02452/10.49, allocations: 4.005 MB / 4.049 GB, free: 14.63 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003306/10.49, allocations: 37.47 kB / 4.049 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/10.49, allocations: 2.38 MB / 4.051 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/10.49, allocations: 0 / 4.051 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/10.5, allocations: 3.689 MB / 4.055 GB, free: 9.047 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/10.5, allocations: 0.6399 MB / 4.056 GB, free: 8.496 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/10.5, allocations: 27.7 kB / 4.056 GB, free: 8.473 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/10.5, allocations: 130.8 kB / 4.056 GB, free: 8.371 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/10.5, allocations: 97.39 kB / 4.056 GB, free: 8.316 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/10.5, allocations: 39.8 kB / 4.056 GB, free: 8.281 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001289/10.5, allocations: 1.058 MB / 4.057 GB, free: 7.391 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.41e-07/10.5, allocations: 0 / 4.057 GB, free: 7.391 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007804/10.51, allocations: 1.955 MB / 4.059 GB, free: 5.473 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.01516/10.52, allocations: 6.009 MB / 4.065 GB, free: 288 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009534/10.53, allocations: 3.222 MB / 4.068 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/10.53, allocations: 4 kB / 4.068 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002624/10.54, allocations: 1.483 MB / 4.069 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/10.54, allocations: 0.6796 MB / 4.07 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3172/10.86, allocations: 13.35 MB / 4.083 GB, free: 59.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001447/10.86, allocations: 1.631 MB / 4.084 GB, free: 58.47 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002758/10.86, allocations: 1.467 MB / 4.086 GB, free: 58.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008609/10.86, allocations: 0.8047 MB / 4.087 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.132e-06/10.86, allocations: 0 / 4.087 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/11.01, allocations: 88.1 MB / 4.173 GB, free: 55.33 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/11.01, allocations: 246.9 kB / 4.173 GB, free: 55.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.211/16.23, allocations: 11.17 kB / 4.173 GB, free: 55.03 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat