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.001529/0.001528, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009234/0.0009234, allocations: 88.97 kB / 297.2 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002489, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2534, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.684/5.937, allocations: 2.814 GB / 3.214 GB, free: 88.98 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/5.937, allocations: 82.41 kB / 3.214 GB, free: 88.94 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 2.424/8.361, allocations: 0.7584 GB / 3.972 GB, free: 24.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.785e-06/8.361, allocations: 0 / 3.972 GB, free: 24.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001751/8.361, allocations: 46.59 kB / 3.973 GB, free: 24.23 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.01217/8.374, allocations: 2.89 MB / 3.975 GB, free: 22.43 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/8.374, allocations: 8.031 kB / 3.975 GB, free: 22.42 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009182/8.375, allocations: 173.7 kB / 3.976 GB, free: 22.27 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005324/8.38, allocations: 0.5986 MB / 3.976 GB, free: 21.8 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002896/8.383, allocations: 1.078 MB / 3.977 GB, free: 20.92 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/8.383, allocations: 97.97 kB / 3.977 GB, free: 20.83 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/8.383, allocations: 105.5 kB / 3.977 GB, free: 20.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005394/8.389, allocations: 2.28 MB / 3.98 GB, free: 18.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/8.389, allocations: 7.938 kB / 3.98 GB, free: 18.84 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/8.389, allocations: 47.28 kB / 3.98 GB, free: 18.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.419e-05/8.389, allocations: 85.67 kB / 3.98 GB, free: 18.72 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005259/8.395, allocations: 2.398 MB / 3.982 GB, free: 16.74 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.01304/8.408, allocations: 9.198 MB / 3.991 GB, free: 7.652 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/8.412, allocations: 1.9 MB / 3.993 GB, free: 5.754 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3138/8.726, allocations: 27 MB / 4.019 GB, free: 38.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/8.726, allocations: 45.66 kB / 4.019 GB, free: 38 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001412/8.728, allocations: 211.1 kB / 4.019 GB, free: 38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 3.978e-06/8.728, allocations: 0 / 4.019 GB, free: 38 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.01781/8.746, allocations: 4.458 MB / 4.024 GB, free: 37.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/8.746, allocations: 218.9 kB / 4.024 GB, free: 37.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/8.747, allocations: 0.8387 MB / 4.025 GB, free: 37.44 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/8.747, allocations: 50.02 kB / 4.025 GB, free: 37.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003775/8.747, allocations: 0.558 MB / 4.025 GB, free: 37.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003488/8.748, allocations: 370.7 kB / 4.026 GB, free: 37.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.703e-05/8.748, allocations: 25.81 kB / 4.026 GB, free: 37.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.82e-05/8.748, allocations: 359 kB / 4.026 GB, free: 36.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/8.749, allocations: 0.6492 MB / 4.027 GB, free: 36.72 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/8.751, allocations: 1.015 MB / 4.028 GB, free: 36.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/8.752, allocations: 0.7652 MB / 4.029 GB, free: 36.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/8.752, allocations: 3.531 kB / 4.029 GB, free: 36.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00376/8.756, allocations: 2.079 MB / 4.031 GB, free: 36.19 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000654/8.757, allocations: 3.749 MB / 4.034 GB, free: 32.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/8.757, allocations: 11.73 kB / 4.034 GB, free: 32.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0297/8.786, allocations: 3.061 MB / 4.037 GB, free: 32.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/8.788, allocations: 281.6 kB / 4.038 GB, free: 32.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/8.79, allocations: 1.442 MB / 4.039 GB, free: 31.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/8.792, allocations: 140.6 kB / 4.039 GB, free: 31.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/8.792, allocations: 74.25 kB / 4.039 GB, free: 31.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/8.792, allocations: 3.5 kB / 4.039 GB, free: 31.74 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004059/8.797, allocations: 1.796 MB / 4.041 GB, free: 31.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/8.797, allocations: 7.938 kB / 4.041 GB, free: 31.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008363/8.797, allocations: 197.3 kB / 4.041 GB, free: 31.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/8.799, allocations: 352.6 kB / 4.041 GB, free: 31.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007994/8.8, allocations: 0.7348 MB / 4.042 GB, free: 31.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/8.801, allocations: 144.5 kB / 4.042 GB, free: 31.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/8.801, allocations: 71.86 kB / 4.042 GB, free: 31.18 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.0008426/8.802, allocations: 439.9 kB / 4.043 GB, free: 30.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/8.803, allocations: 129.5 kB / 4.043 GB, free: 30.92 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007211/8.81, allocations: 5.662 MB / 4.048 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.065e-05/8.81, allocations: 65.38 kB / 4.048 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/8.81, allocations: 0 / 4.048 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/8.81, allocations: 9.938 kB / 4.048 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/8.821, allocations: 7.709 MB / 4.056 GB, free: 29.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/8.821, allocations: 2.438 kB / 4.056 GB, free: 29.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/8.821, allocations: 208.3 kB / 4.056 GB, free: 29.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02651/8.848, allocations: 4.04 MB / 4.06 GB, free: 29.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002972/8.848, allocations: 27.5 kB / 4.06 GB, free: 29.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002913/8.851, allocations: 2.378 MB / 4.063 GB, free: 29.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/8.851, allocations: 0 / 4.063 GB, free: 29.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005531/8.857, allocations: 3.69 MB / 4.066 GB, free: 28.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/8.858, allocations: 0.6431 MB / 4.067 GB, free: 28.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/8.858, allocations: 27.44 kB / 4.067 GB, free: 28.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/8.859, allocations: 133 kB / 4.067 GB, free: 28.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/8.86, allocations: 99.59 kB / 4.067 GB, free: 28.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-05/8.86, allocations: 47.56 kB / 4.067 GB, free: 28.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001455/8.861, allocations: 1.06 MB / 4.068 GB, free: 28.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/8.861, allocations: 0 / 4.068 GB, free: 28.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009544/8.871, allocations: 1.975 MB / 4.07 GB, free: 28.2 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.01433/8.885, allocations: 6.006 MB / 4.076 GB, free: 26.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006695/8.892, allocations: 3.025 MB / 4.079 GB, free: 26.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/8.892, allocations: 0.8438 kB / 4.079 GB, free: 26.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002438/8.894, allocations: 1.491 MB / 4.08 GB, free: 26.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/8.898, allocations: 0.6819 MB / 4.081 GB, free: 26.85 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/8.911, allocations: 13.36 MB / 4.094 GB, free: 17.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008788/8.912, allocations: 1.624 MB / 4.096 GB, free: 16.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002521/8.914, allocations: 1.473 MB / 4.097 GB, free: 16.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008015/8.915, allocations: 0.809 MB / 4.098 GB, free: 16.57 MB / 490.7 MB Notification: Performance of SimCode: time 6.91e-07/8.915, allocations: 0 / 4.098 GB, free: 16.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1274/9.043, allocations: 88.27 MB / 4.184 GB, free: 3.367 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/9.043, allocations: 240.1 kB / 4.184 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.827/13.87, allocations: 0 / 4.184 GB, free: 3.125 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