Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002623/0.002623, allocations: 203.8 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.804/2.804, allocations: 226.5 MB / 245.4 MB, free: 8.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 103.2 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004863/0.0004868, allocations: 4 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5417/0.5423, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.57/14.11, allocations: 2.814 GB / 3.214 GB, free: 102.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003959/14.11, allocations: 83.09 kB / 3.214 GB, free: 102 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 5.544/19.65, allocations: 0.7199 GB / 3.933 GB, free: 28.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.541e-06/19.65, allocations: 2.688 kB / 3.933 GB, free: 28.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002851/19.65, allocations: 39.28 kB / 3.934 GB, free: 28.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.02135/19.67, allocations: 2.868 MB / 3.936 GB, free: 26.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.229e-05/19.67, allocations: 10.91 kB / 3.936 GB, free: 26.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008565/19.68, allocations: 0.6071 MB / 3.937 GB, free: 26.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005673/19.69, allocations: 1.105 MB / 3.938 GB, free: 26.31 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003189/19.69, allocations: 95.02 kB / 3.938 GB, free: 26.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/19.69, allocations: 106.1 kB / 3.938 GB, free: 26.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/19.7, allocations: 2.292 MB / 3.94 GB, free: 25.96 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.72e-05/19.7, allocations: 8.719 kB / 3.94 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/19.7, allocations: 51.12 kB / 3.94 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001899/19.7, allocations: 87.45 kB / 3.941 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/19.72, allocations: 2.389 MB / 3.943 GB, free: 25.92 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.02086/19.74, allocations: 9.203 MB / 3.952 GB, free: 20.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008186/19.75, allocations: 1.897 MB / 3.954 GB, free: 20.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002589/19.75, allocations: 0.7811 MB / 3.955 GB, free: 20.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09003/19.84, allocations: 27 MB / 3.981 GB, free: 18.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001144/19.84, allocations: 43.28 kB / 3.981 GB, free: 18.44 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002598/19.84, allocations: 213.1 kB / 3.981 GB, free: 18.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 1.745e-05/19.84, allocations: 0 / 3.981 GB, free: 18.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.03637/19.88, allocations: 4.643 MB / 3.986 GB, free: 18.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003218/19.88, allocations: 223.6 kB / 3.986 GB, free: 17.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00299/19.88, allocations: 0.9464 MB / 3.987 GB, free: 17.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006026/19.88, allocations: 45.55 kB / 3.987 GB, free: 17.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007441/19.88, allocations: 0.5672 MB / 3.987 GB, free: 17.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006822/19.88, allocations: 371.9 kB / 3.988 GB, free: 17.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/19.88, allocations: 23.38 kB / 3.988 GB, free: 17.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003068/19.88, allocations: 359 kB / 3.988 GB, free: 16.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006636/19.89, allocations: 0.6508 MB / 3.989 GB, free: 16.49 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00343/19.89, allocations: 1.022 MB / 3.99 GB, free: 15.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005093/19.9, allocations: 1.687 MB / 3.991 GB, free: 14.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-05/19.9, allocations: 3.75 kB / 3.991 GB, free: 14.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007419/19.91, allocations: 2.067 MB / 3.993 GB, free: 14.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004233/19.91, allocations: 374 kB / 3.994 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/19.91, allocations: 11.81 kB / 3.994 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04597/19.95, allocations: 3.088 MB / 3.997 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/19.96, allocations: 276.9 kB / 3.997 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009122/19.96, allocations: 1.451 MB / 3.998 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/19.97, allocations: 143 kB / 3.999 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004979/19.97, allocations: 74.03 kB / 3.999 GB, free: 10.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/19.97, allocations: 4 kB / 3.999 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01202/19.98, allocations: 1.791 MB / 4 GB, free: 8.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.244e-05/19.98, allocations: 11.94 kB / 4 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005686/19.99, allocations: 201.2 kB / 4.001 GB, free: 8.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003314/19.99, allocations: 350.7 kB / 4.001 GB, free: 8.285 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/19.99, allocations: 0.7403 MB / 4.002 GB, free: 7.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007658/20, allocations: 141.6 kB / 4.002 GB, free: 7.461 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006313/20, allocations: 71.08 kB / 4.002 GB, free: 7.398 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.00204/20, allocations: 432.7 kB / 4.002 GB, free: 6.984 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007099/20, allocations: 130.4 kB / 4.002 GB, free: 6.855 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02355/20.03, allocations: 5.667 MB / 4.008 GB, free: 1.844 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00016/20.03, allocations: 61.41 kB / 4.008 GB, free: 1.809 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/20.03, allocations: 4 kB / 4.008 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.7e-05/20.03, allocations: 3.938 kB / 4.008 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03318/20.06, allocations: 7.736 MB / 4.016 GB, free: 11.27 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.793e-05/20.06, allocations: 4 kB / 4.016 GB, free: 11.27 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/20.06, allocations: 213.5 kB / 4.016 GB, free: 11.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03394/20.1, allocations: 4.038 MB / 4.02 GB, free: 7.859 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006864/20.1, allocations: 28 kB / 4.02 GB, free: 7.832 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/20.11, allocations: 2.381 MB / 4.022 GB, free: 5.648 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/20.11, allocations: 7.469 kB / 4.022 GB, free: 5.645 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/20.12, allocations: 3.652 MB / 4.026 GB, free: 2.312 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002897/20.12, allocations: 0.6393 MB / 4.026 GB, free: 1.762 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007998/20.12, allocations: 30.38 kB / 4.026 GB, free: 1.738 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002417/20.12, allocations: 129.9 kB / 4.026 GB, free: 1.641 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/20.12, allocations: 109 kB / 4.027 GB, free: 1.574 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/20.12, allocations: 43.69 kB / 4.027 GB, free: 1.535 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002809/20.13, allocations: 1.06 MB / 4.028 GB, free: 0.6445 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.01e-07/20.13, allocations: 0 / 4.028 GB, free: 0.6445 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.6836/20.81, allocations: 1.971 MB / 4.03 GB, free: 58.82 MB / 0.4949 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.01651/20.83, allocations: 2.195 MB / 4.032 GB, free: 58.7 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01107/20.84, allocations: 3.024 MB / 4.035 GB, free: 58.65 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/20.84, allocations: 0 / 4.035 GB, free: 58.65 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008947/20.85, allocations: 1.488 MB / 4.036 GB, free: 58.62 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006864/20.85, allocations: 0.6952 MB / 4.037 GB, free: 58.61 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02538/20.88, allocations: 5.342 MB / 4.042 GB, free: 56.39 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007213/20.89, allocations: 1.579 MB / 4.044 GB, free: 55.65 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/20.89, allocations: 118.5 kB / 4.044 GB, free: 55.65 MB / 0.4949 GB Notification: Performance of SimCode: time 2.925e-06/20.89, allocations: 0 / 4.044 GB, free: 55.65 MB / 0.4949 GB Notification: Performance of Templates: time 0.1804/21.07, allocations: 55.64 MB / 4.098 GB, free: 52.81 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches