Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002007, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 226.5 MB / 244.1 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007758/0.0007759, allocations: 98.48 kB / 296.1 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3794/0.3794, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003653, allocations: 4 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4277/0.4281, allocations: 62.96 MB / 0.5165 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.722/7.15, allocations: 2.825 GB / 3.341 GB, free: 165.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/7.151, allocations: 88.14 kB / 3.341 GB, free: 165.6 MB / 0.5417 GB [/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 2.731/9.882, allocations: 0.7201 GB / 4.061 GB, free: 34.28 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.215e-06/9.882, allocations: 0 / 4.061 GB, free: 34.28 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001805/9.882, allocations: 39.44 kB / 4.061 GB, free: 34.27 MB / 0.5417 GB 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.0132/9.895, allocations: 2.859 MB / 4.064 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/9.895, allocations: 11.22 kB / 4.064 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005308/9.901, allocations: 0.6142 MB / 4.065 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003643/9.904, allocations: 1.11 MB / 4.066 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/9.905, allocations: 91.42 kB / 4.066 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005783/9.905, allocations: 106.7 kB / 4.066 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006959/9.912, allocations: 2.294 MB / 4.068 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.906e-05/9.912, allocations: 3.938 kB / 4.068 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/9.913, allocations: 48.39 kB / 4.068 GB, free: 30.82 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/9.913, allocations: 87.92 kB / 4.068 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005698/9.918, allocations: 2.392 MB / 4.071 GB, free: 30.07 MB / 0.5417 GB 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.01327/9.932, allocations: 9.201 MB / 4.08 GB, free: 23.41 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004717/9.936, allocations: 1.907 MB / 4.082 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/9.938, allocations: 0.781 MB / 4.082 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04265/9.98, allocations: 26.99 MB / 4.109 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/9.981, allocations: 47.56 kB / 4.109 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001608/9.982, allocations: 210.6 kB / 4.109 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=109): time 6.071e-06/9.982, allocations: 4 kB / 4.109 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=109): time 0.01946/10, allocations: 4.627 MB / 4.113 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/10, allocations: 222.6 kB / 4.114 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/10, allocations: 0.9514 MB / 4.115 GB, free: 8.207 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002274/10, allocations: 45.7 kB / 4.115 GB, free: 8.156 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005296/10, allocations: 0.5655 MB / 4.115 GB, free: 7.59 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005037/10.01, allocations: 376.1 kB / 4.116 GB, free: 7.223 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/10.01, allocations: 24 kB / 4.116 GB, free: 7.199 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001764/10.01, allocations: 361.9 kB / 4.116 GB, free: 6.84 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/10.01, allocations: 0.6467 MB / 4.117 GB, free: 6.195 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/10.01, allocations: 1.017 MB / 4.118 GB, free: 5.023 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/10.01, allocations: 1.687 MB / 4.119 GB, free: 3.203 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/10.01, allocations: 4 kB / 4.119 GB, free: 3.199 MB / 0.5573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004639/10.02, allocations: 2.078 MB / 4.121 GB, free: 1.109 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000323/10.02, allocations: 373.5 kB / 4.122 GB, free: 0.6133 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/10.02, allocations: 8 kB / 4.122 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02534/10.04, allocations: 3.092 MB / 4.125 GB, free: 13.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/10.04, allocations: 283.5 kB / 4.125 GB, free: 13.24 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/10.05, allocations: 1.446 MB / 4.126 GB, free: 11.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/10.05, allocations: 139.8 kB / 4.126 GB, free: 11.63 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003554/10.05, allocations: 79.95 kB / 4.127 GB, free: 11.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/10.05, allocations: 0 / 4.127 GB, free: 11.55 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00482/10.05, allocations: 1.789 MB / 4.128 GB, free: 9.754 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/10.05, allocations: 19.59 kB / 4.128 GB, free: 9.738 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008526/10.06, allocations: 192.7 kB / 4.128 GB, free: 9.547 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/10.06, allocations: 343.5 kB / 4.129 GB, free: 9.211 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009454/10.06, allocations: 0.7513 MB / 4.13 GB, free: 8.438 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/10.06, allocations: 143.7 kB / 4.13 GB, free: 8.297 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/10.06, allocations: 63.98 kB / 4.13 GB, free: 8.234 MB / 0.573 GB 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.001024/10.06, allocations: 428.6 kB / 4.13 GB, free: 7.805 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/10.06, allocations: 134.4 kB / 4.13 GB, free: 7.672 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008458/10.07, allocations: 5.675 MB / 4.136 GB, free: 1.969 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.9e-05/10.07, allocations: 63.91 kB / 4.136 GB, free: 1.906 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/10.07, allocations: 0 / 4.136 GB, free: 1.906 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/10.07, allocations: 3.984 kB / 4.136 GB, free: 1.902 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4878/10.56, allocations: 7.691 MB / 4.143 GB, free: 68.38 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/10.56, allocations: 0.9062 kB / 4.143 GB, free: 68.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008917/10.56, allocations: 211.3 kB / 4.144 GB, free: 68.38 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02307/10.58, allocations: 4.045 MB / 4.148 GB, free: 68.31 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004329/10.58, allocations: 28.78 kB / 4.148 GB, free: 68.31 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003612/10.59, allocations: 2.383 MB / 4.15 GB, free: 67.77 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/10.59, allocations: 0.9375 kB / 4.15 GB, free: 67.77 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007406/10.59, allocations: 3.653 MB / 4.153 GB, free: 67.46 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/10.59, allocations: 0.6437 MB / 4.154 GB, free: 67.33 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/10.6, allocations: 24.53 kB / 4.154 GB, free: 67.33 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/10.6, allocations: 133.5 kB / 4.154 GB, free: 67.32 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/10.6, allocations: 98.06 kB / 4.154 GB, free: 67.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/10.6, allocations: 47.16 kB / 4.154 GB, free: 67.32 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001817/10.6, allocations: 1.059 MB / 4.155 GB, free: 67.21 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.022e-06/10.6, allocations: 3.938 kB / 4.155 GB, free: 67.21 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01045/10.61, allocations: 1.973 MB / 4.157 GB, free: 67.19 MB / 0.573 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.01284/10.62, allocations: 2.202 MB / 4.159 GB, free: 67.03 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008088/10.63, allocations: 3.016 MB / 4.162 GB, free: 66.98 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/10.63, allocations: 6.156 kB / 4.162 GB, free: 66.98 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004074/10.63, allocations: 1.482 MB / 4.164 GB, free: 66.95 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005718/10.64, allocations: 0.6953 MB / 4.165 GB, free: 66.94 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009577/10.65, allocations: 5.348 MB / 4.17 GB, free: 64.71 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001545/10.65, allocations: 1.575 MB / 4.171 GB, free: 63.98 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008929/10.65, allocations: 121 kB / 4.171 GB, free: 63.97 MB / 0.573 GB Notification: Performance of SimCode: time 6.542e-06/10.65, allocations: 1.25 kB / 4.171 GB, free: 63.97 MB / 0.573 GB Notification: Performance of Templates: time 0.1009/10.75, allocations: 55.63 MB / 4.226 GB, free: 61.12 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestExamplesVariants/InverseParameterization_laminar/InverseParameterization_laminar.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches