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: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 201.2 kB / 18.11 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007859/0.0007859, allocations: 92.75 kB / 297.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002351, allocations: 4 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2237, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.743/5.966, allocations: 2.814 GB / 3.214 GB, free: 102.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/5.967, allocations: 84.53 kB / 3.214 GB, free: 102.3 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.459/8.426, allocations: 0.7199 GB / 3.934 GB, free: 28.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.893e-06/8.426, allocations: 3.625 kB / 3.934 GB, free: 28.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001774/8.426, allocations: 30.89 kB / 3.934 GB, free: 28.09 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.01394/8.44, allocations: 2.875 MB / 3.937 GB, free: 26.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/8.44, allocations: 12 kB / 3.937 GB, free: 26.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005336/8.446, allocations: 0.603 MB / 3.938 GB, free: 26.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003313/8.449, allocations: 1.111 MB / 3.939 GB, free: 26.16 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/8.449, allocations: 98.17 kB / 3.939 GB, free: 26.16 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000563/8.45, allocations: 108.3 kB / 3.939 GB, free: 26.16 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006497/8.456, allocations: 2.284 MB / 3.941 GB, free: 25.81 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.246e-05/8.456, allocations: 10.59 kB / 3.941 GB, free: 25.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000393/8.457, allocations: 45.02 kB / 3.941 GB, free: 25.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001183/8.457, allocations: 87.67 kB / 3.941 GB, free: 25.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005797/8.463, allocations: 2.396 MB / 3.944 GB, free: 25.77 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.01364/8.476, allocations: 9.192 MB / 3.953 GB, free: 20.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004832/8.481, allocations: 1.907 MB / 3.954 GB, free: 20.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/8.483, allocations: 0.782 MB / 3.955 GB, free: 20.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04489/8.528, allocations: 27 MB / 3.982 GB, free: 18.32 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/8.528, allocations: 46.47 kB / 3.982 GB, free: 18.28 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001404/8.529, allocations: 206.9 kB / 3.982 GB, free: 18.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 8.295e-06/8.529, allocations: 0 / 3.982 GB, free: 18.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.01894/8.548, allocations: 4.635 MB / 3.986 GB, free: 17.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/8.548, allocations: 221.2 kB / 3.987 GB, free: 17.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/8.55, allocations: 0.9501 MB / 3.987 GB, free: 17.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002753/8.55, allocations: 43.61 kB / 3.988 GB, free: 17.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004043/8.551, allocations: 0.5646 MB / 3.988 GB, free: 17.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004359/8.551, allocations: 373.6 kB / 3.988 GB, free: 16.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/8.551, allocations: 25.75 kB / 3.988 GB, free: 16.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/8.551, allocations: 357.1 kB / 3.989 GB, free: 16.39 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/8.553, allocations: 0.6543 MB / 3.989 GB, free: 16.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/8.554, allocations: 1.024 MB / 3.99 GB, free: 15.49 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/8.557, allocations: 1.68 MB / 3.992 GB, free: 14.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-06/8.557, allocations: 7.875 kB / 3.992 GB, free: 14.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004171/8.561, allocations: 2.074 MB / 3.994 GB, free: 13.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002118/8.562, allocations: 374 kB / 3.994 GB, free: 13.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/8.562, allocations: 11.38 kB / 3.994 GB, free: 13.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02675/8.588, allocations: 3.091 MB / 3.997 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/8.59, allocations: 283.4 kB / 3.998 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002815/8.592, allocations: 1.446 MB / 3.999 GB, free: 10.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/8.594, allocations: 140.3 kB / 3.999 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/8.595, allocations: 71.25 kB / 3.999 GB, free: 9.957 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/8.595, allocations: 4.625 kB / 3.999 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004445/8.599, allocations: 1.792 MB / 4.001 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/8.599, allocations: 12 kB / 4.001 GB, free: 8.395 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007864/8.6, allocations: 198 kB / 4.001 GB, free: 8.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/8.602, allocations: 348.8 kB / 4.002 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009198/8.603, allocations: 0.7455 MB / 4.002 GB, free: 7.246 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/8.604, allocations: 141 kB / 4.003 GB, free: 7.137 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002067/8.604, allocations: 74.75 kB / 4.003 GB, free: 7.07 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.0009403/8.605, allocations: 426.1 kB / 4.003 GB, free: 6.664 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003836/8.606, allocations: 130.4 kB / 4.003 GB, free: 6.535 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008145/8.614, allocations: 5.674 MB / 4.009 GB, free: 1.516 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.181e-05/8.614, allocations: 60.66 kB / 4.009 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/8.614, allocations: 0 / 4.009 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/8.614, allocations: 7.031 kB / 4.009 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/8.626, allocations: 7.719 MB / 4.016 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/8.627, allocations: 4.062 kB / 4.016 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008928/8.627, allocations: 208.6 kB / 4.016 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02435/8.652, allocations: 4.036 MB / 4.02 GB, free: 7.461 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003592/8.652, allocations: 31.8 kB / 4.02 GB, free: 7.434 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/8.656, allocations: 2.379 MB / 4.023 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/8.656, allocations: 0 / 4.023 GB, free: 5.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00622/8.662, allocations: 3.656 MB / 4.026 GB, free: 1.918 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/8.663, allocations: 0.6432 MB / 4.027 GB, free: 1.367 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000493/8.664, allocations: 31.94 kB / 4.027 GB, free: 1.336 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/8.666, allocations: 124 kB / 4.027 GB, free: 1.242 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002905/8.666, allocations: 103.7 kB / 4.027 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/8.666, allocations: 39.66 kB / 4.027 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001808/8.668, allocations: 1.06 MB / 4.028 GB, free: 260 kB / 0.4948 GB Notification: Performance of sort global known variables: time 1.51e-07/8.668, allocations: 3.938 kB / 4.028 GB, free: 256 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.2785/8.946, allocations: 1.979 MB / 4.03 GB, free: 58.65 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 () * 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.008333/8.955, allocations: 2.195 MB / 4.032 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006534/8.961, allocations: 3.024 MB / 4.035 GB, free: 58.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/8.961, allocations: 1.469 kB / 4.035 GB, free: 58.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002258/8.964, allocations: 1.487 MB / 4.037 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/8.967, allocations: 0.6944 MB / 4.037 GB, free: 58.44 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007179/8.974, allocations: 5.292 MB / 4.043 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/8.976, allocations: 1.582 MB / 4.044 GB, free: 55.51 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004391/8.98, allocations: 1.464 MB / 4.046 GB, free: 55.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/8.981, allocations: 114.1 kB / 4.046 GB, free: 55.49 MB / 0.4948 GB Notification: Performance of SimCode: time 4.849e-06/8.981, allocations: 0 / 4.046 GB, free: 55.49 MB / 0.4948 GB Notification: Performance of Templates: time 0.09087/9.072, allocations: 69.83 MB / 4.114 GB, free: 52.58 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.makefile (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 & ./Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches