Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_2_3_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.001153/0.001153, allocations: 180.9 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009693/0.0009695, allocations: 96.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.0002658, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3072, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.767/7.074, allocations: 2.808 GB / 3.175 GB, free: 69.45 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/7.074, allocations: 84.58 kB / 3.176 GB, free: 69.4 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 2.837/9.911, allocations: 0.75 GB / 3.926 GB, free: 31.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.683e-06/9.912, allocations: 0 / 3.926 GB, free: 31.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001077/9.912, allocations: 36.72 kB / 3.926 GB, free: 31.6 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.01205/9.924, allocations: 2.88 MB / 3.928 GB, free: 30.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/9.924, allocations: 12.59 kB / 3.928 GB, free: 30.44 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005207/9.924, allocations: 171.2 kB / 3.929 GB, free: 30.39 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004445/9.929, allocations: 0.6008 MB / 3.929 GB, free: 30.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/9.931, allocations: 1.066 MB / 3.93 GB, free: 30 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.41e-05/9.931, allocations: 100.8 kB / 3.93 GB, free: 29.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/9.932, allocations: 104.3 kB / 3.93 GB, free: 29.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004896/9.936, allocations: 2.28 MB / 3.933 GB, free: 29.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/9.936, allocations: 3.094 kB / 3.933 GB, free: 29.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001706/9.937, allocations: 50.27 kB / 3.933 GB, free: 29.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/9.937, allocations: 84.94 kB / 3.933 GB, free: 29.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005154/9.942, allocations: 2.401 MB / 3.935 GB, free: 29.62 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.01175/9.954, allocations: 9.199 MB / 3.944 GB, free: 24.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004461/9.958, allocations: 1.904 MB / 3.946 GB, free: 24.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04345/10, allocations: 24.43 MB / 3.97 GB, free: 25.65 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.075e-05/10, allocations: 47.75 kB / 3.97 GB, free: 25.61 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001559/10, allocations: 209.2 kB / 3.97 GB, free: 25.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=109): time 5.13e-06/10, allocations: 0 / 3.97 GB, free: 25.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=109): time 0.01704/10.02, allocations: 4.46 MB / 3.974 GB, free: 25.32 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/10.02, allocations: 220.1 kB / 3.975 GB, free: 25.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/10.02, allocations: 0.8345 MB / 3.975 GB, free: 24.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/10.02, allocations: 47.98 kB / 3.975 GB, free: 24.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/10.02, allocations: 0.562 MB / 3.976 GB, free: 24.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/10.02, allocations: 383.3 kB / 3.976 GB, free: 24.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/10.02, allocations: 24.03 kB / 3.976 GB, free: 24.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/10.02, allocations: 351.9 kB / 3.977 GB, free: 24.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/10.02, allocations: 0.6488 MB / 3.977 GB, free: 24.09 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/10.03, allocations: 1.012 MB / 3.978 GB, free: 23.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/10.03, allocations: 0.7732 MB / 3.979 GB, free: 23.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/10.03, allocations: 3.5 kB / 3.979 GB, free: 23.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00369/10.03, allocations: 2.079 MB / 3.981 GB, free: 23.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001257/10.03, allocations: 3.745 MB / 3.985 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/10.03, allocations: 10.16 kB / 3.985 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02858/10.06, allocations: 3.024 MB / 3.988 GB, free: 19.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/10.06, allocations: 275 kB / 3.988 GB, free: 19.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002614/10.06, allocations: 1.45 MB / 3.989 GB, free: 19.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/10.07, allocations: 144 kB / 3.99 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/10.07, allocations: 72.47 kB / 3.99 GB, free: 19.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/10.07, allocations: 6.312 kB / 3.99 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00397/10.07, allocations: 1.791 MB / 3.991 GB, free: 19.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/10.07, allocations: 10.28 kB / 3.991 GB, free: 19.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008127/10.07, allocations: 192.8 kB / 3.992 GB, free: 19.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/10.07, allocations: 349.4 kB / 3.992 GB, free: 19.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008377/10.07, allocations: 0.7539 MB / 3.993 GB, free: 18.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/10.07, allocations: 139.6 kB / 3.993 GB, free: 18.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/10.08, allocations: 72.08 kB / 3.993 GB, free: 18.51 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.0008593/10.08, allocations: 421.7 kB / 3.993 GB, free: 18.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/10.08, allocations: 137.2 kB / 3.993 GB, free: 18.25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006899/10.08, allocations: 5.656 MB / 3.999 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.335e-05/10.08, allocations: 61.7 kB / 3.999 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/10.08, allocations: 2.625 kB / 3.999 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/10.08, allocations: 7.5 kB / 3.999 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/10.09, allocations: 7.709 MB / 4.007 GB, free: 16.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/10.09, allocations: 3.5 kB / 4.007 GB, free: 16.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008113/10.09, allocations: 211.7 kB / 4.007 GB, free: 16.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02477/10.12, allocations: 3.995 MB / 4.011 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003252/10.12, allocations: 33.41 kB / 4.011 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/10.12, allocations: 2.38 MB / 4.013 GB, free: 16.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/10.12, allocations: 4.703 kB / 4.013 GB, free: 16.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005029/10.13, allocations: 3.677 MB / 4.017 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/10.13, allocations: 0.6497 MB / 4.017 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/10.13, allocations: 27.25 kB / 4.017 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/10.13, allocations: 127.4 kB / 4.017 GB, free: 15.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/10.13, allocations: 102.6 kB / 4.017 GB, free: 15.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-05/10.13, allocations: 45.59 kB / 4.018 GB, free: 15.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001342/10.13, allocations: 1.059 MB / 4.019 GB, free: 15.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.3e-07/10.13, allocations: 0 / 4.019 GB, free: 15.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007633/10.14, allocations: 1.958 MB / 4.02 GB, free: 15.02 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.01409/10.15, allocations: 5.981 MB / 4.026 GB, free: 13.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006456/10.16, allocations: 3.021 MB / 4.029 GB, free: 13.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/10.16, allocations: 1.062 kB / 4.029 GB, free: 13.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/10.16, allocations: 1.488 MB / 4.031 GB, free: 13.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/10.17, allocations: 0.6697 MB / 4.031 GB, free: 13.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/10.18, allocations: 13.37 MB / 4.044 GB, free: 19.53 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/10.18, allocations: 1.625 MB / 4.046 GB, free: 18.77 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002877/10.19, allocations: 1.474 MB / 4.047 GB, free: 18.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009513/10.19, allocations: 0.8125 MB / 4.048 GB, free: 18.69 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/10.19, allocations: 0 / 4.048 GB, free: 18.69 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4142/10.6, allocations: 87.97 MB / 4.134 GB, free: 58.38 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/10.6, allocations: 246 kB / 4.134 GB, free: 58.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.844/15.45, allocations: 4.969 kB / 4.134 GB, free: 58.14 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat