Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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_turbulent,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_turbulent") translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,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_turbulent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001279, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009081/0.0009085, allocations: 91.17 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2428/0.2428, allocations: 45.16 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.448e-05, allocations: 3.984 kB / 453.2 MB, free: 75.8 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1457, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.936/7.082, allocations: 2.824 GB / 3.328 GB, free: 93.36 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/7.082, allocations: 79.95 kB / 3.328 GB, free: 93.28 MB / 0.5261 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.876/9.958, allocations: 0.7498 GB / 4.078 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.423e-06/9.958, allocations: 0 / 4.078 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001027/9.958, allocations: 41.75 kB / 4.078 GB, free: 49.13 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.01164/9.97, allocations: 2.73 MB / 4.081 GB, free: 48.01 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.655e-05/9.97, allocations: 10.47 kB / 4.081 GB, free: 48.01 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005268/9.975, allocations: 0.6088 MB / 4.081 GB, free: 47.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/9.978, allocations: 1.07 MB / 4.082 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.007e-05/9.979, allocations: 45.88 kB / 4.082 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001874/9.979, allocations: 61.81 kB / 4.082 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002669/9.981, allocations: 1.753 MB / 4.084 GB, free: 47.59 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/9.984, allocations: 1.557 MB / 4.086 GB, free: 47.25 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/9.984, allocations: 6.875 kB / 4.086 GB, free: 47.25 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/9.984, allocations: 3.25 kB / 4.086 GB, free: 47.25 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.879e-05/9.984, allocations: 78.8 kB / 4.086 GB, free: 47.25 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.3267/10.31, allocations: 184.9 MB / 4.266 GB, free: 20.14 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/10.31, allocations: 1.123 MB / 4.267 GB, free: 19.54 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009875/10.31, allocations: 0.5713 MB / 4.268 GB, free: 19.25 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4566/10.77, allocations: 18.75 MB / 4.286 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/10.77, allocations: 44 kB / 4.286 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001499/10.77, allocations: 170.5 kB / 4.287 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=91): time 3.166e-06/10.77, allocations: 0 / 4.287 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=91): time 0.00812/10.78, allocations: 2.415 MB / 4.289 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/10.78, allocations: 219.2 kB / 4.289 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/10.78, allocations: 0.7429 MB / 4.29 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001011/10.78, allocations: 30.95 kB / 4.29 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/10.78, allocations: 0.6224 MB / 4.29 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/10.78, allocations: 308.1 kB / 4.291 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.288e-05/10.78, allocations: 0 / 4.291 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001056/10.78, allocations: 356.4 kB / 4.291 GB, free: 136 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007657/10.78, allocations: 0.5355 MB / 4.292 GB, free: 136 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/10.78, allocations: 0.8839 MB / 4.292 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004966/10.79, allocations: 1.211 MB / 4.294 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/10.79, allocations: 6.891 kB / 4.294 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007408/10.8, allocations: 2.303 MB / 4.296 GB, free: 135.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007507/10.8, allocations: 3.756 MB / 4.3 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/10.8, allocations: 13.14 kB / 4.3 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005401/10.8, allocations: 1.054 MB / 4.301 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/10.8, allocations: 271.7 kB / 4.301 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/10.81, allocations: 1.787 MB / 4.303 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/10.81, allocations: 187 kB / 4.303 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/10.81, allocations: 68.73 kB / 4.303 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/10.81, allocations: 4.984 kB / 4.303 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006227/10.82, allocations: 1.773 MB / 4.305 GB, free: 131 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/10.82, allocations: 9.625 kB / 4.305 GB, free: 131 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008041/10.82, allocations: 194 kB / 4.305 GB, free: 131 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/10.82, allocations: 347.3 kB / 4.305 GB, free: 131 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008466/10.82, allocations: 0.7549 MB / 4.306 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/10.82, allocations: 146.5 kB / 4.306 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/10.82, allocations: 69.67 kB / 4.306 GB, free: 130.5 MB / 0.6511 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,pump.heatTransfer.states[1].phase,source.medium.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.0004556/10.82, allocations: 149.4 kB / 4.306 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002682/10.82, allocations: 112.7 kB / 4.306 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009222/10.83, allocations: 3.881 MB / 4.31 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.654e-05/10.83, allocations: 33.86 kB / 4.31 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/10.83, allocations: 1.391 kB / 4.31 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/10.83, allocations: 4.969 kB / 4.31 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/10.84, allocations: 5.34 MB / 4.315 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/10.84, allocations: 6.312 kB / 4.315 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/10.84, allocations: 111 kB / 4.315 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004166/10.85, allocations: 2.505 MB / 4.318 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.888e-05/10.85, allocations: 11.14 kB / 4.318 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004534/10.85, allocations: 2.886 MB / 4.321 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/10.85, allocations: 8.109 kB / 4.321 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00727/10.86, allocations: 3.1 MB / 4.324 GB, free: 128.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009615/10.86, allocations: 468.6 kB / 4.324 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/10.86, allocations: 3.953 kB / 4.324 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009672/10.86, allocations: 104.6 kB / 4.324 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/10.86, allocations: 63.72 kB / 4.324 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.693e-05/10.86, allocations: 39.44 kB / 4.324 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001306/10.86, allocations: 0.8289 MB / 4.325 GB, free: 128.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.874e-06/10.86, allocations: 2.062 kB / 4.325 GB, free: 128.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01042/10.87, allocations: 1.902 MB / 4.327 GB, free: 128.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.009483/10.88, allocations: 2.347 MB / 4.329 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.004802/10.89, allocations: 2.329 MB / 4.332 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/10.89, allocations: 3.281 kB / 4.332 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00149/10.89, allocations: 0.8998 MB / 4.333 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/10.89, allocations: 492.6 kB / 4.333 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005107/10.9, allocations: 2.381 MB / 4.335 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/10.9, allocations: 1.384 MB / 4.337 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.004045/10.9, allocations: 1.78 MB / 4.338 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/10.9, allocations: 89.03 kB / 4.339 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.132e-06/10.9, allocations: 0 / 4.339 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of Templates: time 0.07704/10.98, allocations: 54.31 MB / 4.392 GB, free: 124.3 MB / 0.6511 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestExamplesVariants/InverseParameterization_turbulent/InverseParameterization_turbulent.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches