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.001229/0.001229, allocations: 181.5 kB / 17.41 MB, free: 4.164 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0008583/0.0008584, allocations: 101.3 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003769, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2781, allocations: 47.57 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.77/7.048, allocations: 2.809 GB / 3.176 GB, free: 67.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/7.048, allocations: 82.72 kB / 3.176 GB, free: 67.79 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 2.601/9.65, allocations: 0.7116 GB / 3.887 GB, free: 10.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.525e-06/9.65, allocations: 224 / 3.887 GB, free: 10.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001989/9.65, allocations: 43.92 kB / 3.887 GB, free: 10.29 MB / 442.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.01419/9.664, allocations: 2.852 MB / 3.89 GB, free: 7.375 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/9.664, allocations: 12.03 kB / 3.89 GB, free: 7.363 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005162/9.669, allocations: 0.5986 MB / 3.891 GB, free: 6.766 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003404/9.673, allocations: 1.108 MB / 3.892 GB, free: 5.613 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/9.673, allocations: 90.14 kB / 3.892 GB, free: 5.523 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000556/9.674, allocations: 108 kB / 3.892 GB, free: 5.418 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006643/9.68, allocations: 2.295 MB / 3.894 GB, free: 2.988 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.724e-05/9.68, allocations: 0 / 3.894 GB, free: 2.988 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003261/9.681, allocations: 55.97 kB / 3.894 GB, free: 2.934 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/9.681, allocations: 82 kB / 3.894 GB, free: 2.852 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005766/9.687, allocations: 2.4 MB / 3.897 GB, free: 452 kB / 442.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.01651/9.703, allocations: 9.202 MB / 3.906 GB, free: 6.637 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005711/9.709, allocations: 1.89 MB / 3.908 GB, free: 4.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/9.711, allocations: 0.7768 MB / 3.908 GB, free: 3.969 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3233/10.03, allocations: 24.42 MB / 3.932 GB, free: 22.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/10.03, allocations: 44.97 kB / 3.932 GB, free: 22.91 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001374/10.04, allocations: 216 kB / 3.932 GB, free: 22.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 3.106e-06/10.04, allocations: 0 / 3.932 GB, free: 22.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=109): time 0.01707/10.05, allocations: 4.623 MB / 3.937 GB, free: 22.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/10.05, allocations: 220 kB / 3.937 GB, free: 22.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/10.05, allocations: 0.9576 MB / 3.938 GB, free: 22.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/10.05, allocations: 45.45 kB / 3.938 GB, free: 22.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/10.05, allocations: 0.5655 MB / 3.939 GB, free: 22.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/10.06, allocations: 373.2 kB / 3.939 GB, free: 21.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/10.06, allocations: 31.28 kB / 3.939 GB, free: 21.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.44e-05/10.06, allocations: 355.3 kB / 3.939 GB, free: 21.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/10.06, allocations: 0.6441 MB / 3.94 GB, free: 21.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/10.06, allocations: 1.024 MB / 3.941 GB, free: 21.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002726/10.06, allocations: 1.687 MB / 3.943 GB, free: 20.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/10.06, allocations: 7.281 kB / 3.943 GB, free: 20.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004409/10.07, allocations: 2.072 MB / 3.945 GB, free: 20.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001904/10.07, allocations: 372.6 kB / 3.945 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/10.07, allocations: 9.781 kB / 3.945 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02545/10.09, allocations: 3.057 MB / 3.948 GB, free: 20.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/10.09, allocations: 274.8 kB / 3.948 GB, free: 20.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/10.1, allocations: 1.453 MB / 3.95 GB, free: 19.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/10.1, allocations: 147.4 kB / 3.95 GB, free: 19.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/10.1, allocations: 72.22 kB / 3.95 GB, free: 19.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/10.1, allocations: 3.562 kB / 3.95 GB, free: 19.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003978/10.1, allocations: 1.787 MB / 3.952 GB, free: 19.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/10.1, allocations: 12.94 kB / 3.952 GB, free: 19.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007964/10.1, allocations: 188.4 kB / 3.952 GB, free: 19.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/10.1, allocations: 352.6 kB / 3.952 GB, free: 19.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007704/10.1, allocations: 0.744 MB / 3.953 GB, free: 19.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/10.11, allocations: 141.9 kB / 3.953 GB, free: 19.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/10.11, allocations: 70.66 kB / 3.953 GB, free: 19.23 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 () * 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.0008236/10.11, allocations: 424.8 kB / 3.954 GB, free: 19.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/10.11, allocations: 134.4 kB / 3.954 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/10.11, allocations: 5.655 MB / 3.959 GB, free: 18.51 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/10.11, allocations: 63.55 kB / 3.959 GB, free: 18.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/10.11, allocations: 0 / 3.959 GB, free: 18.51 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/10.11, allocations: 5.812 kB / 3.959 GB, free: 18.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009359/10.12, allocations: 7.713 MB / 3.967 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/10.12, allocations: 1.594 kB / 3.967 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000771/10.12, allocations: 213.2 kB / 3.967 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02126/10.15, allocations: 4.009 MB / 3.971 GB, free: 17.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003311/10.15, allocations: 28.22 kB / 3.971 GB, free: 17.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002802/10.15, allocations: 2.376 MB / 3.973 GB, free: 17.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/10.15, allocations: 7.203 kB / 3.973 GB, free: 17.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005246/10.15, allocations: 3.651 MB / 3.977 GB, free: 16.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/10.16, allocations: 0.6516 MB / 3.977 GB, free: 16.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/10.16, allocations: 24.53 kB / 3.978 GB, free: 16.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/10.16, allocations: 128.1 kB / 3.978 GB, free: 16.53 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/10.16, allocations: 101.2 kB / 3.978 GB, free: 16.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.89e-05/10.16, allocations: 40.28 kB / 3.978 GB, free: 16.53 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001302/10.16, allocations: 1.062 MB / 3.979 GB, free: 16.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/10.16, allocations: 0 / 3.979 GB, free: 16.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007433/10.17, allocations: 1.953 MB / 3.981 GB, free: 16.31 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 () * 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.009314/10.18, allocations: 2.185 MB / 3.983 GB, free: 16.08 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006611/10.18, allocations: 3.021 MB / 3.986 GB, free: 16.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/10.18, allocations: 6.531 kB / 3.986 GB, free: 16.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/10.18, allocations: 1.48 MB / 3.987 GB, free: 15.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003735/10.19, allocations: 0.6868 MB / 3.988 GB, free: 15.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006505/10.19, allocations: 5.356 MB / 3.993 GB, free: 13.69 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008383/10.2, allocations: 1.578 MB / 3.995 GB, free: 12.92 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004819/10.2, allocations: 118.4 kB / 3.995 GB, free: 12.91 MB / 458.7 MB Notification: Performance of SimCode: time 5.81e-07/10.2, allocations: 4 kB / 3.995 GB, free: 12.91 MB / 458.7 MB Notification: Performance of Templates: time 0.07847/10.27, allocations: 55.39 MB / 4.049 GB, free: 2.484 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