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.001613/0.001613, allocations: 186.2 kB / 16.4 MB, free: 5.715 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.007/2.007, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001137/0.001137, allocations: 96.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005375/0.0005375, allocations: 8 kB / 327 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3376, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.594/8.931, allocations: 2.808 GB / 3.174 GB, free: 79.45 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/8.932, allocations: 86.42 kB / 3.174 GB, free: 79.44 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.786/12.72, allocations: 0.75 GB / 3.924 GB, free: 33.35 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.565e-06/12.72, allocations: 0 / 3.924 GB, free: 33.35 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001567/12.72, allocations: 32.39 kB / 3.924 GB, free: 33.35 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.01653/12.73, allocations: 2.878 MB / 3.927 GB, free: 31.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/12.73, allocations: 8.812 kB / 3.927 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007744/12.73, allocations: 176.3 kB / 3.927 GB, free: 31.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006927/12.74, allocations: 0.6035 MB / 3.928 GB, free: 31.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/12.75, allocations: 1.076 MB / 3.929 GB, free: 31.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/12.75, allocations: 87.75 kB / 3.929 GB, free: 31.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003942/12.75, allocations: 109.2 kB / 3.929 GB, free: 31.37 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008682/12.76, allocations: 2.277 MB / 3.931 GB, free: 31.01 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.108e-05/12.76, allocations: 3.938 kB / 3.931 GB, free: 31.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003047/12.76, allocations: 48.77 kB / 3.931 GB, free: 31.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/12.76, allocations: 85.77 kB / 3.932 GB, free: 31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00989/12.77, allocations: 2.396 MB / 3.934 GB, free: 30.95 MB / 458.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.02155/12.79, allocations: 9.2 MB / 3.943 GB, free: 25.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008369/12.8, allocations: 1.904 MB / 3.945 GB, free: 24.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07514/12.87, allocations: 24.44 MB / 3.969 GB, free: 24.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.346e-05/12.87, allocations: 47.56 kB / 3.969 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001987/12.87, allocations: 202.8 kB / 3.969 GB, free: 24.03 MB / 474.7 MB Notification: Performance of pre-optimization done (n=109): time 6.201e-06/12.87, allocations: 4 kB / 3.969 GB, free: 24.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=109): time 0.03231/12.91, allocations: 4.46 MB / 3.973 GB, free: 20.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/12.91, allocations: 218.6 kB / 3.973 GB, free: 20.38 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/12.91, allocations: 0.8325 MB / 3.974 GB, free: 19.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004214/12.91, allocations: 45.7 kB / 3.974 GB, free: 19.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000443/12.91, allocations: 0.5514 MB / 3.975 GB, free: 19.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005479/12.91, allocations: 378.7 kB / 3.975 GB, free: 18.73 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/12.91, allocations: 24 kB / 3.975 GB, free: 18.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/12.91, allocations: 365.7 kB / 3.975 GB, free: 18.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002402/12.91, allocations: 0.6419 MB / 3.976 GB, free: 17.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/12.91, allocations: 1.015 MB / 3.977 GB, free: 16.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002686/12.92, allocations: 0.7666 MB / 3.978 GB, free: 16.08 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/12.92, allocations: 4 kB / 3.978 GB, free: 16.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007088/12.92, allocations: 2.007 MB / 3.98 GB, free: 14.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001809/12.93, allocations: 3.748 MB / 3.983 GB, free: 10.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/12.93, allocations: 12 kB / 3.983 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05474/12.98, allocations: 3.023 MB / 3.986 GB, free: 8.098 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002306/12.98, allocations: 281.2 kB / 3.987 GB, free: 7.863 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005061/12.99, allocations: 1.447 MB / 3.988 GB, free: 6.547 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002964/12.99, allocations: 139.4 kB / 3.988 GB, free: 6.438 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004164/12.99, allocations: 74.12 kB / 3.988 GB, free: 6.375 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/12.99, allocations: 4 kB / 3.988 GB, free: 6.371 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008417/13, allocations: 1.783 MB / 3.99 GB, free: 4.832 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-05/13, allocations: 12 kB / 3.99 GB, free: 4.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/13, allocations: 197.7 kB / 3.99 GB, free: 4.676 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003246/13.01, allocations: 351.7 kB / 3.991 GB, free: 4.391 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/13.01, allocations: 0.7443 MB / 3.991 GB, free: 3.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/13.01, allocations: 134 kB / 3.991 GB, free: 3.562 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/13.01, allocations: 75.45 kB / 3.992 GB, free: 3.496 MB / 474.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.001279/13.01, allocations: 427.8 kB / 3.992 GB, free: 3.086 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004968/13.01, allocations: 134.4 kB / 3.992 GB, free: 2.953 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4076/13.42, allocations: 5.657 MB / 3.998 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.237e-05/13.42, allocations: 58.38 kB / 3.998 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/13.42, allocations: 0 / 3.998 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.479e-05/13.42, allocations: 6.469 kB / 3.998 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/13.44, allocations: 7.71 MB / 4.005 GB, free: 47.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/13.44, allocations: 3.703 kB / 4.005 GB, free: 47.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/13.44, allocations: 205 kB / 4.005 GB, free: 47.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04678/13.48, allocations: 4.001 MB / 4.009 GB, free: 47.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003971/13.48, allocations: 30.72 kB / 4.009 GB, free: 47.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00491/13.49, allocations: 2.384 MB / 4.012 GB, free: 46.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/13.49, allocations: 3.953 kB / 4.012 GB, free: 46.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00902/13.5, allocations: 3.685 MB / 4.015 GB, free: 46.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/13.5, allocations: 0.6492 MB / 4.016 GB, free: 46.01 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004372/13.5, allocations: 23.62 kB / 4.016 GB, free: 46.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/13.5, allocations: 129.5 kB / 4.016 GB, free: 46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000333/13.5, allocations: 99.45 kB / 4.016 GB, free: 46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/13.5, allocations: 41.23 kB / 4.016 GB, free: 46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002161/13.51, allocations: 1.062 MB / 4.017 GB, free: 45.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/13.51, allocations: 1.641 kB / 4.017 GB, free: 45.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01048/13.52, allocations: 1.952 MB / 4.019 GB, free: 45.88 MB / 474.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.02369/13.54, allocations: 5.977 MB / 4.025 GB, free: 44.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0123/13.55, allocations: 3.028 MB / 4.028 GB, free: 44.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/13.55, allocations: 3.719 kB / 4.028 GB, free: 44.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004615/13.56, allocations: 1.483 MB / 4.029 GB, free: 44.62 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006425/13.56, allocations: 0.6805 MB / 4.03 GB, free: 44.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/13.58, allocations: 13.42 MB / 4.043 GB, free: 35.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/13.58, allocations: 1.619 MB / 4.045 GB, free: 34.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/13.59, allocations: 0.8175 MB / 4.046 GB, free: 34.32 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/13.59, allocations: 0 / 4.046 GB, free: 34.32 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.33/17.92, allocations: 64.13 MB / 4.108 GB, free: 29.98 MB / 474.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