Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008644/0.0008644, allocations: 88.72 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1855/0.1855, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.763e-05, allocations: 8 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 63.24 MB / 0.5114 GB, free: 6.82 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.105/6.211, allocations: 2.824 GB / 3.336 GB, free: 149.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/6.211, allocations: 75.94 kB / 3.336 GB, free: 149.4 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.222/8.434, allocations: 0.7565 GB / 4.092 GB, free: 47.29 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.092e-06/8.434, allocations: 0 / 4.092 GB, free: 47.29 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001007/8.434, allocations: 37.94 kB / 4.092 GB, free: 47.28 MB / 0.5573 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.009912/8.444, allocations: 2.734 MB / 4.095 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/8.444, allocations: 11.16 kB / 4.095 GB, free: 45.74 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004279/8.448, allocations: 0.6018 MB / 4.096 GB, free: 45.61 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/8.451, allocations: 1.067 MB / 4.097 GB, free: 45.02 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.141e-05/8.451, allocations: 89.77 kB / 4.097 GB, free: 44.98 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001948/8.451, allocations: 109.3 kB / 4.097 GB, free: 44.95 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/8.455, allocations: 2.258 MB / 4.099 GB, free: 43.97 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/8.455, allocations: 6.031 kB / 4.099 GB, free: 43.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/8.455, allocations: 55.19 kB / 4.099 GB, free: 43.93 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.894e-05/8.455, allocations: 84.38 kB / 4.099 GB, free: 43.92 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004101/8.459, allocations: 2.265 MB / 4.101 GB, free: 43.17 MB / 0.5573 GB 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.0106/8.47, allocations: 9.195 MB / 4.11 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00339/8.473, allocations: 1.747 MB / 4.112 GB, free: 33.35 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008275/8.474, allocations: 0.6857 MB / 4.113 GB, free: 32.72 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03988/8.514, allocations: 27.1 MB / 4.139 GB, free: 3.836 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.774e-05/8.514, allocations: 47.59 kB / 4.139 GB, free: 3.781 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0015/8.516, allocations: 210.7 kB / 4.139 GB, free: 3.574 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=109): time 4.208e-06/8.516, allocations: 0 / 4.139 GB, free: 3.574 MB / 0.5573 GB Notification: Performance of matching and sorting (n=109): time 0.00704/8.523, allocations: 2.599 MB / 4.142 GB, free: 0.9688 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/8.523, allocations: 222.6 kB / 4.142 GB, free: 0.6992 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/8.524, allocations: 0.8219 MB / 4.143 GB, free: 15.86 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001289/8.524, allocations: 41.7 kB / 4.143 GB, free: 15.81 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003975/8.525, allocations: 0.5607 MB / 4.144 GB, free: 15.25 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/8.525, allocations: 379.8 kB / 4.144 GB, free: 14.88 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/8.525, allocations: 28 kB / 4.144 GB, free: 14.85 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001444/8.525, allocations: 353.9 kB / 4.144 GB, free: 14.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008944/8.526, allocations: 0.5493 MB / 4.145 GB, free: 13.95 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/8.527, allocations: 0.912 MB / 4.146 GB, free: 12.89 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/8.528, allocations: 0.6723 MB / 4.146 GB, free: 12.22 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/8.528, allocations: 4 kB / 4.146 GB, free: 12.21 MB / 0.573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003131/8.531, allocations: 1.859 MB / 4.148 GB, free: 10.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00135/8.533, allocations: 3.753 MB / 4.152 GB, free: 6.297 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/8.533, allocations: 8 kB / 4.152 GB, free: 6.289 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02609/8.559, allocations: 3.008 MB / 4.155 GB, free: 3.281 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/8.56, allocations: 279.6 kB / 4.155 GB, free: 3.008 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/8.563, allocations: 1.404 MB / 4.156 GB, free: 1.578 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/8.564, allocations: 143.8 kB / 4.157 GB, free: 1.438 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/8.564, allocations: 71.97 kB / 4.157 GB, free: 1.367 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/8.564, allocations: 4 kB / 4.157 GB, free: 1.363 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3279/8.892, allocations: 1.581 MB / 4.158 GB, free: 66.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/8.892, allocations: 11.81 kB / 4.158 GB, free: 66.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008593/8.893, allocations: 192.5 kB / 4.158 GB, free: 66.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/8.895, allocations: 349.8 kB / 4.159 GB, free: 66.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007686/8.896, allocations: 0.7358 MB / 4.159 GB, free: 66.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/8.897, allocations: 138.8 kB / 4.16 GB, free: 66.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/8.898, allocations: 67.45 kB / 4.16 GB, free: 66.1 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 () * 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.0003508/8.898, allocations: 194.2 kB / 4.16 GB, free: 65.99 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/8.898, allocations: 129.7 kB / 4.16 GB, free: 65.99 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006191/8.904, allocations: 5.495 MB / 4.165 GB, free: 65.59 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.363e-05/8.904, allocations: 64.55 kB / 4.165 GB, free: 65.59 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/8.904, allocations: 0 / 4.165 GB, free: 65.59 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/8.904, allocations: 6.891 kB / 4.165 GB, free: 65.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007692/8.912, allocations: 7.53 MB / 4.173 GB, free: 65.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/8.912, allocations: 3.375 kB / 4.173 GB, free: 65.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008098/8.913, allocations: 205.7 kB / 4.173 GB, free: 65.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0234/8.936, allocations: 4.317 MB / 4.177 GB, free: 64.96 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002904/8.937, allocations: 30.25 kB / 4.177 GB, free: 64.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00276/8.94, allocations: 2.346 MB / 4.179 GB, free: 64.41 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/8.94, allocations: 5.547 kB / 4.179 GB, free: 64.4 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004689/8.944, allocations: 3.503 MB / 4.183 GB, free: 63.91 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/8.945, allocations: 0.6463 MB / 4.184 GB, free: 63.69 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/8.946, allocations: 23.91 kB / 4.184 GB, free: 63.69 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/8.947, allocations: 134.8 kB / 4.184 GB, free: 63.68 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/8.947, allocations: 102 kB / 4.184 GB, free: 63.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.726e-05/8.947, allocations: 42.81 kB / 4.184 GB, free: 63.68 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001513/8.948, allocations: 1.04 MB / 4.185 GB, free: 63.56 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.31e-07/8.948, allocations: 0 / 4.185 GB, free: 63.56 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006884/8.955, allocations: 1.982 MB / 4.187 GB, free: 63.52 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 () * 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.007868/8.963, allocations: 2.204 MB / 4.189 GB, free: 63.28 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004843/8.968, allocations: 2.761 MB / 4.192 GB, free: 63.22 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/8.968, allocations: 1.5 kB / 4.192 GB, free: 63.22 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001846/8.97, allocations: 1.381 MB / 4.193 GB, free: 63.19 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/8.973, allocations: 0.6779 MB / 4.194 GB, free: 63.18 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004508/8.978, allocations: 3.389 MB / 4.197 GB, free: 62.45 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008224/8.979, allocations: 1.628 MB / 4.199 GB, free: 61.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002819/8.982, allocations: 1.546 MB / 4.2 GB, free: 61.68 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/8.982, allocations: 96.58 kB / 4.2 GB, free: 61.68 MB / 0.573 GB Notification: Performance of SimCode: time 1.232e-06/8.982, allocations: 0 / 4.2 GB, free: 61.68 MB / 0.573 GB Notification: Performance of Templates: time 0.07984/9.062, allocations: 71.21 MB / 4.27 GB, free: 58.95 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestExamplesVariants/InverseParameterization_laminar/InverseParameterization_laminar.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches