Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: 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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004447/0.004452, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001092/0.001092, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.458e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09796, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.711/8.809, allocations: 2.808 GB / 3.169 GB, free: 82.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/8.809, allocations: 76.27 kB / 3.169 GB, free: 82.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 3.896/12.71, allocations: 0.748 GB / 3.917 GB, free: 32.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.354e-06/12.71, allocations: 0 / 3.917 GB, free: 32.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001528/12.71, allocations: 35.67 kB / 3.917 GB, free: 32.72 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.01593/12.72, allocations: 2.716 MB / 3.919 GB, free: 31.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/12.72, allocations: 11.66 kB / 3.919 GB, free: 31.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006708/12.73, allocations: 0.6071 MB / 3.92 GB, free: 31.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003841/12.73, allocations: 1.061 MB / 3.921 GB, free: 30.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/12.73, allocations: 97.25 kB / 3.921 GB, free: 30.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003802/12.73, allocations: 97.81 kB / 3.921 GB, free: 30.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007663/12.74, allocations: 2.255 MB / 3.923 GB, free: 29.42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.578e-05/12.74, allocations: 7.906 kB / 3.923 GB, free: 29.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002876/12.74, allocations: 51.34 kB / 3.923 GB, free: 29.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/12.74, allocations: 87.48 kB / 3.924 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007999/12.75, allocations: 2.271 MB / 3.926 GB, free: 27.58 MB / 458.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.02078/12.77, allocations: 9.205 MB / 3.935 GB, free: 19.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006316/12.78, allocations: 1.751 MB / 3.936 GB, free: 17.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/12.78, allocations: 0.6871 MB / 3.937 GB, free: 16.78 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4342/13.21, allocations: 24.51 MB / 3.961 GB, free: 29.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/13.21, allocations: 49.97 kB / 3.961 GB, free: 29.1 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001982/13.21, allocations: 207.9 kB / 3.961 GB, free: 29.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 5.881e-06/13.22, allocations: 0 / 3.961 GB, free: 29.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=109): time 0.01328/13.23, allocations: 2.601 MB / 3.964 GB, free: 29.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/13.23, allocations: 221.4 kB / 3.964 GB, free: 28.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/13.23, allocations: 0.8287 MB / 3.965 GB, free: 28.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004112/13.23, allocations: 45.08 kB / 3.965 GB, free: 28.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004477/13.23, allocations: 0.5525 MB / 3.965 GB, free: 28.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005521/13.23, allocations: 380.2 kB / 3.966 GB, free: 28.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/13.23, allocations: 20.66 kB / 3.966 GB, free: 28.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/13.23, allocations: 366.2 kB / 3.966 GB, free: 27.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/13.23, allocations: 0.5462 MB / 3.967 GB, free: 27.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/13.24, allocations: 0.9126 MB / 3.968 GB, free: 27.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/13.24, allocations: 0.6671 MB / 3.968 GB, free: 27.42 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/13.24, allocations: 3.625 kB / 3.968 GB, free: 27.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.005615/13.24, allocations: 1.779 MB / 3.97 GB, free: 27.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008734/13.24, allocations: 3.752 MB / 3.974 GB, free: 23.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/13.24, allocations: 16.86 kB / 3.974 GB, free: 23.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05378/13.3, allocations: 2.978 MB / 3.977 GB, free: 23.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/13.3, allocations: 278.1 kB / 3.977 GB, free: 23.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00417/13.3, allocations: 1.391 MB / 3.978 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/13.31, allocations: 147.5 kB / 3.978 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/13.31, allocations: 73.69 kB / 3.978 GB, free: 22.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/13.31, allocations: 4.625 kB / 3.978 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005689/13.31, allocations: 1.588 MB / 3.98 GB, free: 22.85 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/13.31, allocations: 11.03 kB / 3.98 GB, free: 22.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/13.32, allocations: 194.5 kB / 3.98 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/13.32, allocations: 351.6 kB / 3.981 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/13.32, allocations: 0.7364 MB / 3.981 GB, free: 22.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002294/13.32, allocations: 141 kB / 3.981 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/13.32, allocations: 67.56 kB / 3.981 GB, free: 22.32 MB / 458.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.0005616/13.32, allocations: 186 kB / 3.982 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/13.32, allocations: 134.8 kB / 3.982 GB, free: 22.15 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/13.33, allocations: 5.486 MB / 3.987 GB, free: 21.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.311e-05/13.33, allocations: 60.55 kB / 3.987 GB, free: 21.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/13.33, allocations: 7.609 kB / 3.987 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.265e-05/13.33, allocations: 7.969 kB / 3.987 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/13.35, allocations: 7.535 MB / 3.995 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/13.35, allocations: 0 / 3.995 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/13.35, allocations: 208.9 kB / 3.995 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04586/13.39, allocations: 4.28 MB / 3.999 GB, free: 20.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003404/13.4, allocations: 28.47 kB / 3.999 GB, free: 20.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004161/13.4, allocations: 2.358 MB / 4.001 GB, free: 20.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/13.4, allocations: 3.25 kB / 4.001 GB, free: 20.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006752/13.41, allocations: 3.5 MB / 4.005 GB, free: 19.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/13.41, allocations: 0.6382 MB / 4.005 GB, free: 19.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/13.41, allocations: 31.44 kB / 4.005 GB, free: 19.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001981/13.41, allocations: 129.2 kB / 4.005 GB, free: 19.63 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/13.41, allocations: 101.1 kB / 4.006 GB, free: 19.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/13.41, allocations: 45.98 kB / 4.006 GB, free: 19.63 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002028/13.41, allocations: 1.036 MB / 4.007 GB, free: 19.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/13.41, allocations: 0 / 4.007 GB, free: 19.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009171/13.42, allocations: 1.957 MB / 4.009 GB, free: 19.4 MB / 458.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 () * 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.01224/13.43, allocations: 2.179 MB / 4.011 GB, free: 19.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009035/13.44, allocations: 2.719 MB / 4.013 GB, free: 19.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/13.44, allocations: 3.125 kB / 4.013 GB, free: 19.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003634/13.45, allocations: 1.384 MB / 4.015 GB, free: 19.08 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006121/13.45, allocations: 0.6764 MB / 4.015 GB, free: 19.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008198/13.46, allocations: 3.436 MB / 4.019 GB, free: 18.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001261/13.46, allocations: 1.616 MB / 4.02 GB, free: 17.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007748/13.46, allocations: 121.7 kB / 4.02 GB, free: 17.55 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/13.46, allocations: 0 / 4.02 GB, free: 17.55 MB / 458.7 MB Notification: Performance of Templates: time 0.1146/13.58, allocations: 57.31 MB / 4.076 GB, free: 13.43 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches