Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001254/0.001254, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.563/1.563, allocations: 205.4 MB / 224.2 MB, free: 9.043 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.0009408/0.000941, allocations: 90.3 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003578, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2656, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.98/6.246, allocations: 2.809 GB / 3.177 GB, free: 67.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/6.246, allocations: 82.78 kB / 3.177 GB, free: 67.82 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.374/8.62, allocations: 0.7116 GB / 3.889 GB, free: 10.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/8.62, allocations: 0 / 3.889 GB, free: 10.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001597/8.621, allocations: 31.98 kB / 3.889 GB, free: 10.32 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.01181/8.632, allocations: 2.86 MB / 3.891 GB, free: 7.402 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/8.632, allocations: 8.031 kB / 3.891 GB, free: 7.395 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004923/8.637, allocations: 0.6064 MB / 3.892 GB, free: 6.789 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/8.64, allocations: 1.1 MB / 3.893 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/8.64, allocations: 94.14 kB / 3.893 GB, free: 5.551 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004183/8.641, allocations: 107.9 kB / 3.893 GB, free: 5.445 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005368/8.646, allocations: 2.291 MB / 3.896 GB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/8.646, allocations: 11.83 kB / 3.896 GB, free: 3.012 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/8.647, allocations: 51.97 kB / 3.896 GB, free: 2.961 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.952e-05/8.647, allocations: 82.02 kB / 3.896 GB, free: 2.879 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005462/8.652, allocations: 2.393 MB / 3.898 GB, free: 488 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.01525/8.667, allocations: 9.199 MB / 3.907 GB, free: 6.672 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005097/8.673, allocations: 1.896 MB / 3.909 GB, free: 4.781 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/8.674, allocations: 0.7796 MB / 3.91 GB, free: 4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2846/8.959, allocations: 24.42 MB / 3.933 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/8.959, allocations: 46.41 kB / 3.934 GB, free: 23.39 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001367/8.96, allocations: 213.5 kB / 3.934 GB, free: 23.39 MB / 458.7 MB Notification: Performance of pre-optimization done (n=109): time 9.467e-06/8.96, allocations: 3.344 kB / 3.934 GB, free: 23.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=109): time 0.01813/8.978, allocations: 4.62 MB / 3.938 GB, free: 23.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/8.978, allocations: 224.6 kB / 3.938 GB, free: 22.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/8.98, allocations: 0.9501 MB / 3.939 GB, free: 22.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/8.98, allocations: 46.95 kB / 3.939 GB, free: 22.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004194/8.981, allocations: 0.5631 MB / 3.94 GB, free: 22.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/8.981, allocations: 378.4 kB / 3.94 GB, free: 22.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/8.981, allocations: 24.47 kB / 3.94 GB, free: 22.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/8.981, allocations: 357 kB / 3.941 GB, free: 22.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/8.983, allocations: 0.6467 MB / 3.941 GB, free: 22.13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/8.984, allocations: 1.021 MB / 3.942 GB, free: 21.74 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/8.987, allocations: 1.687 MB / 3.944 GB, free: 21.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/8.987, allocations: 3.844 kB / 3.944 GB, free: 21.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004334/8.991, allocations: 2.075 MB / 3.946 GB, free: 21.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002031/8.991, allocations: 377.4 kB / 3.946 GB, free: 20.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/8.991, allocations: 8.969 kB / 3.946 GB, free: 20.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02595/9.017, allocations: 3.057 MB / 3.949 GB, free: 20.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/9.019, allocations: 280 kB / 3.95 GB, free: 20.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/9.021, allocations: 1.442 MB / 3.951 GB, free: 20.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/9.023, allocations: 144.5 kB / 3.951 GB, free: 20.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/9.023, allocations: 79.2 kB / 3.951 GB, free: 20.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/9.023, allocations: 3.844 kB / 3.951 GB, free: 20.28 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00423/9.027, allocations: 1.786 MB / 3.953 GB, free: 20.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/9.027, allocations: 10.19 kB / 3.953 GB, free: 20.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007699/9.028, allocations: 198.7 kB / 3.953 GB, free: 20.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/9.03, allocations: 349.1 kB / 3.954 GB, free: 20.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008214/9.031, allocations: 0.7452 MB / 3.954 GB, free: 19.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/9.032, allocations: 141.6 kB / 3.954 GB, free: 19.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002067/9.033, allocations: 66.69 kB / 3.954 GB, free: 19.71 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.0008886/9.034, allocations: 421.6 kB / 3.955 GB, free: 19.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/9.034, allocations: 135.7 kB / 3.955 GB, free: 19.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007543/9.041, allocations: 5.659 MB / 3.961 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.774e-05/9.042, allocations: 64.92 kB / 3.961 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/9.042, allocations: 2.766 kB / 3.961 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/9.042, allocations: 6.844 kB / 3.961 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009852/9.051, allocations: 7.706 MB / 3.968 GB, free: 18.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/9.051, allocations: 0 / 3.968 GB, free: 18.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/9.052, allocations: 209.2 kB / 3.968 GB, free: 18.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02198/9.074, allocations: 4.001 MB / 3.972 GB, free: 18.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002883/9.075, allocations: 36.48 kB / 3.972 GB, free: 18.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/9.078, allocations: 2.373 MB / 3.975 GB, free: 17.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/9.078, allocations: 0 / 3.975 GB, free: 17.76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005656/9.083, allocations: 3.655 MB / 3.978 GB, free: 17.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/9.085, allocations: 0.6529 MB / 3.979 GB, free: 17.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004661/9.085, allocations: 29.19 kB / 3.979 GB, free: 17.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/9.086, allocations: 122.8 kB / 3.979 GB, free: 17.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/9.087, allocations: 108.4 kB / 3.979 GB, free: 17.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/9.087, allocations: 45.02 kB / 3.979 GB, free: 17.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001639/9.089, allocations: 1.056 MB / 3.98 GB, free: 16.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/9.089, allocations: 0 / 3.98 GB, free: 16.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007653/9.096, allocations: 1.957 MB / 3.982 GB, free: 16.79 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.009372/9.106, allocations: 2.177 MB / 3.984 GB, free: 16.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007045/9.113, allocations: 3.02 MB / 3.987 GB, free: 16.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/9.113, allocations: 2.625 kB / 3.987 GB, free: 16.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002449/9.115, allocations: 1.485 MB / 3.989 GB, free: 16.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003963/9.119, allocations: 0.6944 MB / 3.989 GB, free: 16.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006957/9.126, allocations: 5.287 MB / 3.994 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/9.127, allocations: 1.581 MB / 3.996 GB, free: 13.44 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002772/9.13, allocations: 1.469 MB / 3.997 GB, free: 13.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004112/9.131, allocations: 111.1 kB / 3.997 GB, free: 13.37 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/9.131, allocations: 4 kB / 3.997 GB, free: 13.37 MB / 458.7 MB Notification: Performance of Templates: time 0.803/9.934, allocations: 69.6 MB / 4.065 GB, free: 8.977 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches