Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.656/1.656, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009686/0.0009686, allocations: 94.56 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.868e-05, allocations: 4 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.565/8.687, allocations: 2.814 GB / 3.207 GB, free: 92.74 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/8.688, allocations: 77.64 kB / 3.207 GB, free: 92.74 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.497/12.19, allocations: 0.7562 GB / 3.963 GB, free: 26.35 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.849e-06/12.19, allocations: 0 / 3.963 GB, free: 26.35 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000183/12.19, allocations: 43.58 kB / 3.963 GB, free: 26.34 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.01583/12.2, allocations: 2.726 MB / 3.966 GB, free: 25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.76e-05/12.2, allocations: 10.09 kB / 3.966 GB, free: 25 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006682/12.2, allocations: 169.2 kB / 3.966 GB, free: 24.96 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004829/12.21, allocations: 0.6124 MB / 3.967 GB, free: 24.88 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002764/12.21, allocations: 1.072 MB / 3.968 GB, free: 24.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.383e-05/12.21, allocations: 91.27 kB / 3.968 GB, free: 24.55 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/12.21, allocations: 106.1 kB / 3.968 GB, free: 24.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00466/12.21, allocations: 2.259 MB / 3.97 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/12.21, allocations: 4.75 kB / 3.97 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/12.21, allocations: 51.86 kB / 3.97 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/12.21, allocations: 91.45 kB / 3.97 GB, free: 24.19 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004445/12.22, allocations: 2.266 MB / 3.972 GB, free: 24.17 MB / 474.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.01323/12.23, allocations: 9.208 MB / 3.981 GB, free: 19.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003688/12.24, allocations: 1.746 MB / 3.983 GB, free: 19.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009939/12.24, allocations: 0.6846 MB / 3.984 GB, free: 19.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0519/12.29, allocations: 27.07 MB / 4.01 GB, free: 17.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.08e-05/12.29, allocations: 49.06 kB / 4.01 GB, free: 17.18 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001912/12.29, allocations: 207.4 kB / 4.01 GB, free: 17.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 1.123e-05/12.29, allocations: 0 / 4.01 GB, free: 17.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.009422/12.3, allocations: 2.608 MB / 4.013 GB, free: 16.97 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/12.3, allocations: 220.5 kB / 4.013 GB, free: 16.72 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/12.3, allocations: 0.8252 MB / 4.014 GB, free: 16.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002573/12.3, allocations: 48.23 kB / 4.014 GB, free: 16.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005845/12.3, allocations: 0.5658 MB / 4.015 GB, free: 16.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005161/12.3, allocations: 374.6 kB / 4.015 GB, free: 16.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/12.3, allocations: 19.94 kB / 4.015 GB, free: 16.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/12.3, allocations: 360.2 kB / 4.015 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/12.31, allocations: 0.5494 MB / 4.016 GB, free: 15.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/12.31, allocations: 0.9234 MB / 4.017 GB, free: 15.31 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/12.31, allocations: 0.6702 MB / 4.017 GB, free: 15.28 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/12.31, allocations: 3.031 kB / 4.017 GB, free: 15.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003639/12.31, allocations: 1.848 MB / 4.019 GB, free: 15.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001622/12.31, allocations: 3.751 MB / 4.023 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.93e-05/12.31, allocations: 10.31 kB / 4.023 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.028/12.34, allocations: 3.017 MB / 4.026 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/12.34, allocations: 277.2 kB / 4.026 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003128/12.35, allocations: 1.395 MB / 4.027 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/12.35, allocations: 142.8 kB / 4.028 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004276/12.35, allocations: 71.95 kB / 4.028 GB, free: 10.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/12.35, allocations: 3.812 kB / 4.028 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004342/12.35, allocations: 1.592 MB / 4.029 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/12.35, allocations: 6.688 kB / 4.029 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008459/12.35, allocations: 201.6 kB / 4.029 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/12.36, allocations: 354 kB / 4.03 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/12.36, allocations: 0.7334 MB / 4.03 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/12.36, allocations: 140.7 kB / 4.031 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002843/12.36, allocations: 70.77 kB / 4.031 GB, free: 9.938 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 () * 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.001498/12.36, allocations: 197.7 kB / 4.031 GB, free: 25.81 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006169/12.36, allocations: 135.9 kB / 4.031 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008264/12.37, allocations: 5.484 MB / 4.036 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.428e-05/12.37, allocations: 61.3 kB / 4.036 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/12.37, allocations: 3.438 kB / 4.036 GB, free: 25.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/12.37, allocations: 10.52 kB / 4.036 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/12.38, allocations: 7.532 MB / 4.044 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/12.38, allocations: 0 / 4.044 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008632/12.38, allocations: 213.7 kB / 4.044 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02437/12.41, allocations: 4.321 MB / 4.048 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004639/12.41, allocations: 30.72 kB / 4.048 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003441/12.41, allocations: 2.35 MB / 4.05 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/12.41, allocations: 3.844 kB / 4.05 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/12.42, allocations: 3.497 MB / 4.054 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/12.42, allocations: 0.6489 MB / 4.055 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/12.42, allocations: 22.66 kB / 4.055 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/12.42, allocations: 130 kB / 4.055 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002727/12.42, allocations: 107.1 kB / 4.055 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/12.42, allocations: 39.12 kB / 4.055 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001881/12.42, allocations: 1.04 MB / 4.056 GB, free: 22.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.9e-07/12.42, allocations: 0 / 4.056 GB, free: 22.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01047/12.43, allocations: 1.984 MB / 4.058 GB, free: 22.52 MB / 0.4948 GB 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.01838/12.45, allocations: 5.78 MB / 4.063 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006793/12.46, allocations: 2.755 MB / 4.066 GB, free: 16.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/12.46, allocations: 0 / 4.066 GB, free: 16.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002501/12.46, allocations: 1.385 MB / 4.067 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004458/12.47, allocations: 0.6892 MB / 4.068 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/12.48, allocations: 4.238 MB / 4.072 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/12.48, allocations: 1.626 MB / 4.074 GB, free: 9.457 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003824/12.49, allocations: 1.539 MB / 4.075 GB, free: 8.574 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/12.49, allocations: 0.7926 MB / 4.076 GB, free: 7.848 MB / 0.4948 GB Notification: Performance of SimCode: time 3.386e-06/12.49, allocations: 0 / 4.076 GB, free: 7.848 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.56/13.05, allocations: 94.32 MB / 4.168 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/13.05, allocations: 206.1 kB / 4.168 GB, free: 47.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.395/18.44, allocations: 0.6562 kB / 4.168 GB, free: 47.2 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_InverseParameterization.fmu > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat does not exist to compare? outputFormat=mat