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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 208.9 kB / 8.543 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.00101, allocations: 93.38 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2488/0.2488, allocations: 45.14 MB / 383.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.207e-06/9.237e-06, allocations: 3.938 kB / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1491, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.914/7.063, allocations: 2.824 GB / 3.327 GB, free: 97.38 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/7.064, allocations: 75.97 kB / 3.327 GB, free: 97.3 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: time 2.895/9.959, allocations: 0.7528 GB / 4.08 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001787/9.959, allocations: 37.38 kB / 4.08 GB, free: 47.11 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.01455/9.974, allocations: 2.929 MB / 4.083 GB, free: 45.95 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/9.974, allocations: 7.5 kB / 4.083 GB, free: 45.95 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005603/9.979, allocations: 0.6379 MB / 4.084 GB, free: 45.87 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/9.983, allocations: 1.076 MB / 4.085 GB, free: 45.54 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/9.983, allocations: 46.38 kB / 4.085 GB, free: 45.54 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004735/9.983, allocations: 59 kB / 4.085 GB, free: 45.54 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003541/9.987, allocations: 1.749 MB / 4.087 GB, free: 45.53 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003089/9.99, allocations: 1.571 MB / 4.088 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/9.99, allocations: 1.031 kB / 4.088 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001901/9.99, allocations: 3.781 kB / 4.088 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.877e-05/9.99, allocations: 94.31 kB / 4.088 GB, free: 45.19 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3648/10.36, allocations: 189.3 MB / 4.273 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/10.36, allocations: 1.115 MB / 4.274 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007387/10.36, allocations: 0.5793 MB / 4.275 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3568/10.72, allocations: 19.29 MB / 4.294 GB, free: 179.8 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/10.72, allocations: 42.91 kB / 4.294 GB, free: 179.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=91): time 2.665e-06/10.72, allocations: 0 / 4.294 GB, free: 179.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=91): time 0.0143/10.73, allocations: 3.057 MB / 4.297 GB, free: 179.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/10.73, allocations: 218.1 kB / 4.297 GB, free: 179.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/10.73, allocations: 0.7717 MB / 4.298 GB, free: 179.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0002037/10.73, allocations: 25.7 kB / 4.298 GB, free: 179.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/10.73, allocations: 0.492 MB / 4.298 GB, free: 179.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000321/10.73, allocations: 310 kB / 4.298 GB, free: 178.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.914e-05/10.73, allocations: 0 / 4.298 GB, free: 178.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001005/10.73, allocations: 362.3 kB / 4.299 GB, free: 178.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008975/10.73, allocations: 0.6022 MB / 4.299 GB, free: 178.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/10.73, allocations: 0.9618 MB / 4.3 GB, free: 178.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005859/10.74, allocations: 1.294 MB / 4.302 GB, free: 178.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/10.74, allocations: 5.125 kB / 4.302 GB, free: 178.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01037/10.75, allocations: 3.067 MB / 4.305 GB, free: 178.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009708/10.75, allocations: 3.742 MB / 4.308 GB, free: 174.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/10.75, allocations: 7.5 kB / 4.308 GB, free: 174.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006298/10.76, allocations: 1.137 MB / 4.309 GB, free: 174.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/10.76, allocations: 287.5 kB / 4.31 GB, free: 174.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/10.76, allocations: 2.059 MB / 4.312 GB, free: 173.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/10.77, allocations: 263.4 kB / 4.312 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/10.77, allocations: 73.12 kB / 4.312 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/10.77, allocations: 5.844 kB / 4.312 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00684/10.77, allocations: 1.964 MB / 4.314 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/10.77, allocations: 12.34 kB / 4.314 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008298/10.77, allocations: 205 kB / 4.314 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/10.78, allocations: 358.5 kB / 4.314 GB, free: 173.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/10.78, allocations: 0.8327 MB / 4.315 GB, free: 173.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/10.78, allocations: 200 kB / 4.315 GB, free: 173 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/10.78, allocations: 72.58 kB / 4.315 GB, free: 173 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.000511/10.78, allocations: 148.8 kB / 4.316 GB, free: 172.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/10.78, allocations: 0.4949 MB / 4.316 GB, free: 172.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/10.79, allocations: 4.381 MB / 4.32 GB, free: 172.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.92e-05/10.79, allocations: 25.91 kB / 4.32 GB, free: 172.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/10.79, allocations: 8.969 kB / 4.32 GB, free: 172.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/10.79, allocations: 6.516 kB / 4.32 GB, free: 172.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/10.8, allocations: 6.07 MB / 4.326 GB, free: 172.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/10.8, allocations: 3.906 kB / 4.326 GB, free: 172.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/10.81, allocations: 121.9 kB / 4.326 GB, free: 172.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004654/10.81, allocations: 2.253 MB / 4.329 GB, free: 172 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.737e-05/10.81, allocations: 17.77 kB / 4.329 GB, free: 172 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005793/10.82, allocations: 2.82 MB / 4.331 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.366e-05/10.82, allocations: 5.156 kB / 4.331 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009472/10.83, allocations: 3.658 MB / 4.335 GB, free: 170.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/10.83, allocations: 0.5022 MB / 4.335 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/10.83, allocations: 10.78 kB / 4.336 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/10.83, allocations: 97.28 kB / 4.336 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/10.83, allocations: 71.83 kB / 4.336 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.12e-05/10.83, allocations: 38.42 kB / 4.336 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.001194/10.83, allocations: 0.8752 MB / 4.337 GB, free: 170.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.008712/10.84, allocations: 1.94 MB / 4.338 GB, free: 170.4 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01217/10.85, allocations: 2.429 MB / 4.341 GB, free: 170.2 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005924/10.86, allocations: 2.8 MB / 4.344 GB, free: 170.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/10.86, allocations: 0 / 4.344 GB, free: 170.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002101/10.86, allocations: 1.365 MB / 4.345 GB, free: 170.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/10.86, allocations: 472 kB / 4.345 GB, free: 170.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005563/10.87, allocations: 2.728 MB / 4.348 GB, free: 169.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/10.87, allocations: 1.496 MB / 4.349 GB, free: 168.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.964e-06/10.87, allocations: 0 / 4.349 GB, free: 168.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.09732/10.97, allocations: 65.62 MB / 4.414 GB, free: 165.9 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