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.001541/0.001541, allocations: 186 kB / 16.4 MB, free: 5.699 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.925/1.925, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001151/0.001151, allocations: 86.92 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003882, allocations: 12 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3399, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.354/8.694, allocations: 2.808 GB / 3.174 GB, free: 78.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/8.694, allocations: 79.83 kB / 3.174 GB, free: 78.05 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.762/12.46, allocations: 0.7501 GB / 3.924 GB, free: 32.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.944e-06/12.46, allocations: 3.938 kB / 3.924 GB, free: 32.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001672/12.46, allocations: 32.95 kB / 3.924 GB, free: 32.71 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.01636/12.47, allocations: 2.871 MB / 3.927 GB, free: 31.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/12.47, allocations: 11.69 kB / 3.927 GB, free: 31.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007019/12.48, allocations: 0.6029 MB / 3.928 GB, free: 31.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003831/12.48, allocations: 1.072 MB / 3.929 GB, free: 30.78 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/12.48, allocations: 93.44 kB / 3.929 GB, free: 30.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005475/12.48, allocations: 106 kB / 3.929 GB, free: 30.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008986/12.49, allocations: 2.28 MB / 3.931 GB, free: 30.41 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.167e-05/12.49, allocations: 0 / 3.931 GB, free: 30.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003053/12.49, allocations: 49.28 kB / 3.931 GB, free: 30.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001687/12.49, allocations: 87.45 kB / 3.931 GB, free: 30.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/12.5, allocations: 2.396 MB / 3.934 GB, free: 30.37 MB / 458.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.02029/12.52, allocations: 9.201 MB / 3.943 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008258/12.53, allocations: 1.904 MB / 3.944 GB, free: 25.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07553/12.61, allocations: 24.43 MB / 3.968 GB, free: 25.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.923e-05/12.61, allocations: 51.44 kB / 3.968 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00192/12.61, allocations: 204.9 kB / 3.969 GB, free: 25.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=109): time 7.004e-06/12.61, allocations: 0 / 3.969 GB, free: 25.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=109): time 0.03296/12.64, allocations: 4.457 MB / 3.973 GB, free: 23.08 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/12.64, allocations: 222 kB / 3.973 GB, free: 22.82 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/12.65, allocations: 0.8391 MB / 3.974 GB, free: 22.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004241/12.65, allocations: 45.7 kB / 3.974 GB, free: 22.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004622/12.65, allocations: 0.5542 MB / 3.975 GB, free: 21.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005467/12.65, allocations: 377.4 kB / 3.975 GB, free: 21.17 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/12.65, allocations: 20 kB / 3.975 GB, free: 21.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001914/12.65, allocations: 359.4 kB / 3.975 GB, free: 20.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/12.65, allocations: 0.653 MB / 3.976 GB, free: 20.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/12.65, allocations: 1.01 MB / 3.977 GB, free: 19.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/12.66, allocations: 0.7637 MB / 3.978 GB, free: 18.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/12.66, allocations: 4 kB / 3.978 GB, free: 18.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.006999/12.66, allocations: 2.016 MB / 3.98 GB, free: 16.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001508/12.66, allocations: 3.738 MB / 3.983 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/12.66, allocations: 15.75 kB / 3.983 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05398/12.72, allocations: 3.022 MB / 3.986 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/12.72, allocations: 281.5 kB / 3.986 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004692/12.73, allocations: 1.447 MB / 3.988 GB, free: 8.992 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/12.73, allocations: 141.5 kB / 3.988 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003323/12.73, allocations: 74.88 kB / 3.988 GB, free: 8.816 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/12.73, allocations: 0.625 kB / 3.988 GB, free: 8.816 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008466/12.74, allocations: 1.789 MB / 3.99 GB, free: 7.273 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/12.74, allocations: 15.94 kB / 3.99 GB, free: 7.258 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/12.74, allocations: 193.7 kB / 3.99 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/12.74, allocations: 348.1 kB / 3.99 GB, free: 6.832 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/12.74, allocations: 0.7491 MB / 3.991 GB, free: 6.105 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/12.75, allocations: 138.7 kB / 3.991 GB, free: 5.996 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/12.75, allocations: 66.23 kB / 3.991 GB, free: 5.938 MB / 474.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.001275/12.75, allocations: 429.8 kB / 3.992 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004877/12.75, allocations: 134.4 kB / 3.992 GB, free: 5.395 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/12.76, allocations: 5.658 MB / 3.997 GB, free: 412 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-05/12.76, allocations: 58.41 kB / 3.997 GB, free: 376 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/12.76, allocations: 4 kB / 3.997 GB, free: 372 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-05/12.76, allocations: 7.547 kB / 3.997 GB, free: 372 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3824/13.15, allocations: 7.718 MB / 4.005 GB, free: 47.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.171e-05/13.15, allocations: 0 / 4.005 GB, free: 47.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/13.15, allocations: 214.6 kB / 4.005 GB, free: 47.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04735/13.19, allocations: 4 MB / 4.009 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/13.2, allocations: 28.05 kB / 4.009 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/13.2, allocations: 2.384 MB / 4.011 GB, free: 46.65 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/13.2, allocations: 3.656 kB / 4.011 GB, free: 46.65 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008587/13.21, allocations: 3.687 MB / 4.015 GB, free: 46.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/13.21, allocations: 0.6458 MB / 4.016 GB, free: 46.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/13.21, allocations: 23.53 kB / 4.016 GB, free: 46.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/13.21, allocations: 131.1 kB / 4.016 GB, free: 46.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/13.21, allocations: 103.4 kB / 4.016 GB, free: 46.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/13.21, allocations: 46.06 kB / 4.016 GB, free: 46.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002126/13.22, allocations: 1.061 MB / 4.017 GB, free: 45.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.71e-07/13.22, allocations: 0 / 4.017 GB, free: 45.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009412/13.23, allocations: 1.953 MB / 4.019 GB, free: 45.96 MB / 474.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.01233/13.24, allocations: 2.166 MB / 4.021 GB, free: 45.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0126/13.25, allocations: 3.033 MB / 4.024 GB, free: 45.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/13.25, allocations: 1.062 kB / 4.024 GB, free: 45.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004896/13.26, allocations: 1.479 MB / 4.025 GB, free: 45.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00654/13.26, allocations: 0.6799 MB / 4.026 GB, free: 45.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/13.27, allocations: 5.353 MB / 4.031 GB, free: 43.48 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/13.27, allocations: 1.614 MB / 4.033 GB, free: 42.75 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007853/13.28, allocations: 126.4 kB / 4.033 GB, free: 42.74 MB / 474.7 MB Notification: Performance of SimCode: time 1.253e-06/13.28, allocations: 0 / 4.033 GB, free: 42.74 MB / 474.7 MB Notification: Performance of Templates: time 0.1128/13.39, allocations: 57.59 MB / 4.089 GB, free: 39.11 MB / 474.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