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: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00217/0.002176, allocations: 179.9 kB / 13.66 MB, free: 1.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001619/0.001619, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.101e-05/3.112e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.465/8.572, allocations: 2.808 GB / 3.169 GB, free: 82.63 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/8.572, allocations: 71.72 kB / 3.169 GB, free: 82.63 MB / 426.7 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.801/12.37, allocations: 0.7479 GB / 3.917 GB, free: 33.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.414e-06/12.37, allocations: 4 kB / 3.917 GB, free: 33.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001829/12.37, allocations: 36.39 kB / 3.917 GB, free: 33.01 MB / 458.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.01562/12.39, allocations: 2.722 MB / 3.919 GB, free: 31.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/12.39, allocations: 9.875 kB / 3.919 GB, free: 31.48 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006589/12.39, allocations: 173.5 kB / 3.92 GB, free: 31.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006688/12.4, allocations: 0.6027 MB / 3.92 GB, free: 31.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/12.4, allocations: 1.067 MB / 3.921 GB, free: 30.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/12.4, allocations: 88.27 kB / 3.921 GB, free: 30.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004124/12.4, allocations: 109.4 kB / 3.921 GB, free: 30.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007811/12.41, allocations: 2.255 MB / 3.924 GB, free: 29.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/12.41, allocations: 7.25 kB / 3.924 GB, free: 29.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/12.41, allocations: 49.66 kB / 3.924 GB, free: 29.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/12.41, allocations: 85.28 kB / 3.924 GB, free: 29.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008346/12.42, allocations: 2.268 MB / 3.926 GB, free: 27.86 MB / 458.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.02069/12.44, allocations: 9.206 MB / 3.935 GB, free: 19.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006239/12.44, allocations: 1.75 MB / 3.937 GB, free: 17.83 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/12.45, allocations: 0.6841 MB / 3.937 GB, free: 17.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4652/12.91, allocations: 24.5 MB / 3.961 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.375e-05/12.91, allocations: 47.97 kB / 3.961 GB, free: 29.3 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002554/12.91, allocations: 207.4 kB / 3.962 GB, free: 29.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 9.448e-06/12.91, allocations: 1.203 kB / 3.962 GB, free: 29.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=109): time 0.01989/12.93, allocations: 2.604 MB / 3.964 GB, free: 29.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/12.93, allocations: 224.3 kB / 3.964 GB, free: 28.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/12.94, allocations: 0.8243 MB / 3.965 GB, free: 28.82 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004245/12.94, allocations: 43.84 kB / 3.965 GB, free: 28.79 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005394/12.94, allocations: 0.5507 MB / 3.966 GB, free: 28.53 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008045/12.94, allocations: 381.5 kB / 3.966 GB, free: 28.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/12.94, allocations: 26.19 kB / 3.966 GB, free: 28.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/12.94, allocations: 362 kB / 3.966 GB, free: 28.03 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/12.94, allocations: 0.546 MB / 3.967 GB, free: 28.03 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00262/12.94, allocations: 0.9173 MB / 3.968 GB, free: 27.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002721/12.95, allocations: 0.6634 MB / 3.969 GB, free: 27.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.875e-05/12.95, allocations: 4.297 kB / 3.969 GB, free: 27.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.008074/12.96, allocations: 1.787 MB / 3.97 GB, free: 27.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001157/12.96, allocations: 3.746 MB / 3.974 GB, free: 23.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.938e-05/12.96, allocations: 13.33 kB / 3.974 GB, free: 23.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0736/13.03, allocations: 2.987 MB / 3.977 GB, free: 23.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003307/13.03, allocations: 276 kB / 3.977 GB, free: 23.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/13.04, allocations: 1.396 MB / 3.978 GB, free: 23.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004326/13.04, allocations: 136.3 kB / 3.979 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006571/13.04, allocations: 75.42 kB / 3.979 GB, free: 23.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/13.04, allocations: 4.812 kB / 3.979 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008433/13.05, allocations: 1.588 MB / 3.98 GB, free: 23.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.864e-05/13.05, allocations: 13.06 kB / 3.98 GB, free: 23.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/13.06, allocations: 194.7 kB / 3.98 GB, free: 23.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004019/13.06, allocations: 345.8 kB / 3.981 GB, free: 23.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/13.06, allocations: 0.7319 MB / 3.981 GB, free: 22.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/13.06, allocations: 150.5 kB / 3.982 GB, free: 22.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005975/13.06, allocations: 64.88 kB / 3.982 GB, free: 22.53 MB / 458.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 () * 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.0008149/13.07, allocations: 194.5 kB / 3.982 GB, free: 22.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006743/13.07, allocations: 128.1 kB / 3.982 GB, free: 22.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/13.08, allocations: 5.488 MB / 3.987 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001271/13.08, allocations: 56.23 kB / 3.987 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/13.08, allocations: 7.766 kB / 3.987 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-05/13.08, allocations: 10.36 kB / 3.987 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02236/13.11, allocations: 7.528 MB / 3.995 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.77e-05/13.11, allocations: 1.219 kB / 3.995 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002342/13.11, allocations: 212.3 kB / 3.995 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04844/13.16, allocations: 4.277 MB / 3.999 GB, free: 21.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004033/13.16, allocations: 31.42 kB / 3.999 GB, free: 21.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004393/13.16, allocations: 2.35 MB / 4.001 GB, free: 20.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/13.16, allocations: 4.125 kB / 4.001 GB, free: 20.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007291/13.17, allocations: 3.499 MB / 4.005 GB, free: 20.13 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/13.17, allocations: 0.6461 MB / 4.006 GB, free: 19.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005634/13.17, allocations: 32.77 kB / 4.006 GB, free: 19.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00245/13.17, allocations: 126.5 kB / 4.006 GB, free: 19.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004092/13.17, allocations: 107.8 kB / 4.006 GB, free: 19.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/13.17, allocations: 43.58 kB / 4.006 GB, free: 19.83 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002219/13.18, allocations: 1.042 MB / 4.007 GB, free: 19.71 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.032e-06/13.18, allocations: 1.125 kB / 4.007 GB, free: 19.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01013/13.19, allocations: 1.951 MB / 4.009 GB, free: 19.61 MB / 458.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 () * 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.01877/13.21, allocations: 5.774 MB / 4.014 GB, free: 18.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008519/13.21, allocations: 2.725 MB / 4.017 GB, free: 18.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/13.21, allocations: 0 / 4.017 GB, free: 18.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003455/13.22, allocations: 1.38 MB / 4.018 GB, free: 18.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005908/13.22, allocations: 0.677 MB / 4.019 GB, free: 18.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/13.24, allocations: 4.269 MB / 4.023 GB, free: 17.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/13.24, allocations: 1.612 MB / 4.025 GB, free: 16.62 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/13.24, allocations: 0.8181 MB / 4.026 GB, free: 16.61 MB / 458.7 MB Notification: Performance of SimCode: time 2.134e-06/13.24, allocations: 2.25 kB / 4.026 GB, free: 16.61 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.202/17.44, allocations: 66.26 MB / 4.09 GB, free: 7.289 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat