Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009809/0.000981, allocations: 191.5 kB / 8.528 MB, free: 2.633 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.4 MB / 230.3 MB, free: 7.707 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 88.66 kB / 281.2 MB, free: 5.137 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4391/0.4391, allocations: 44.14 MB / 376.1 MB, free: 44.96 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 8.365e-06/8.395e-06, allocations: 0 / 444 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1669, allocations: 61.92 MB / 0.4941 GB, free: 1.18 MB / 382.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.563/6.73, allocations: 2.823 GB / 3.317 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/6.73, allocations: 67.97 kB / 3.317 GB, free: 2.41 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: time 2.613/9.343, allocations: 0.7526 GB / 4.069 GB, free: 34.97 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001328/9.344, allocations: 44.25 kB / 4.069 GB, free: 34.96 MB / 0.5294 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.01358/9.357, allocations: 2.911 MB / 4.072 GB, free: 33.45 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/9.357, allocations: 12.5 kB / 4.072 GB, free: 33.44 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005222/9.363, allocations: 0.6318 MB / 4.073 GB, free: 33.31 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/9.365, allocations: 1.078 MB / 4.074 GB, free: 32.72 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.457e-05/9.366, allocations: 43.5 kB / 4.074 GB, free: 32.71 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/9.366, allocations: 61.19 kB / 4.074 GB, free: 32.71 MB / 0.5294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002945/9.369, allocations: 1.753 MB / 4.076 GB, free: 32.08 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/9.371, allocations: 1.572 MB / 4.077 GB, free: 31.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/9.371, allocations: 3.938 kB / 4.077 GB, free: 31.29 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/9.371, allocations: 3.719 kB / 4.077 GB, free: 31.29 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.15e-05/9.371, allocations: 88.94 kB / 4.077 GB, free: 31.28 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.646/10.02, allocations: 167.3 MB / 4.241 GB, free: 47.52 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/10.02, allocations: 1.11 MB / 4.242 GB, free: 47.47 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007633/10.02, allocations: 0.5875 MB / 4.243 GB, free: 47.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03212/10.05, allocations: 16.91 MB / 4.259 GB, free: 36.37 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/10.05, allocations: 48.12 kB / 4.259 GB, free: 36.33 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=91): time 2.836e-06/10.05, allocations: 0 / 4.259 GB, free: 36.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=91): time 0.0144/10.07, allocations: 3.04 MB / 4.262 GB, free: 36.23 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/10.07, allocations: 215.2 kB / 4.262 GB, free: 35.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/10.07, allocations: 0.7714 MB / 4.263 GB, free: 35.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003015/10.07, allocations: 29.7 kB / 4.263 GB, free: 35.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/10.07, allocations: 0.4939 MB / 4.264 GB, free: 35.55 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003236/10.07, allocations: 310.8 kB / 4.264 GB, free: 35.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/10.07, allocations: 0 / 4.264 GB, free: 35.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.788e-05/10.07, allocations: 352.8 kB / 4.264 GB, free: 35.09 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008984/10.07, allocations: 0.6043 MB / 4.265 GB, free: 35.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/10.07, allocations: 0.9597 MB / 4.266 GB, free: 34.69 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005788/10.08, allocations: 1.281 MB / 4.267 GB, free: 34.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/10.08, allocations: 3.656 kB / 4.267 GB, free: 34.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01008/10.09, allocations: 3.064 MB / 4.27 GB, free: 34.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.001017/10.09, allocations: 3.743 MB / 4.274 GB, free: 46.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/10.09, allocations: 7.875 kB / 4.274 GB, free: 46.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006266/10.09, allocations: 1.139 MB / 4.275 GB, free: 46.53 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/10.1, allocations: 286.7 kB / 4.275 GB, free: 46.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005581/10.1, allocations: 2.051 MB / 4.277 GB, free: 45.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/10.1, allocations: 265.7 kB / 4.277 GB, free: 45.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/10.1, allocations: 71.14 kB / 4.277 GB, free: 45.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/10.1, allocations: 7.938 kB / 4.277 GB, free: 45.93 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006789/10.11, allocations: 1.938 MB / 4.279 GB, free: 45.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/10.11, allocations: 11.22 kB / 4.279 GB, free: 45.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008612/10.11, allocations: 211.1 kB / 4.279 GB, free: 45.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/10.11, allocations: 355.3 kB / 4.28 GB, free: 45.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/10.11, allocations: 0.832 MB / 4.281 GB, free: 45.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/10.12, allocations: 201.5 kB / 4.281 GB, free: 45.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/10.12, allocations: 70.78 kB / 4.281 GB, free: 45.29 MB / 0.5762 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.0005559/10.12, allocations: 147.5 kB / 4.281 GB, free: 45.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001795/10.12, allocations: 497.4 kB / 4.281 GB, free: 45.13 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009643/10.13, allocations: 4.371 MB / 4.286 GB, free: 44.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/10.13, allocations: 25.91 kB / 4.286 GB, free: 44.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/10.13, allocations: 0.9844 kB / 4.286 GB, free: 44.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/10.13, allocations: 13.89 kB / 4.286 GB, free: 44.82 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01292/10.14, allocations: 6.051 MB / 4.292 GB, free: 44.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/10.14, allocations: 3.781 kB / 4.292 GB, free: 44.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/10.14, allocations: 116.6 kB / 4.292 GB, free: 44.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005111/10.15, allocations: 2.252 MB / 4.294 GB, free: 44.18 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002301/10.15, allocations: 20.77 kB / 4.294 GB, free: 44.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006728/10.15, allocations: 2.815 MB / 4.297 GB, free: 43.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/10.16, allocations: 7.812 kB / 4.297 GB, free: 43.58 MB / 0.5762 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01166/10.17, allocations: 3.647 MB / 4.3 GB, free: 42.91 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/10.17, allocations: 0.5005 MB / 4.301 GB, free: 42.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006875/10.17, allocations: 7.016 kB / 4.301 GB, free: 42.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001725/10.17, allocations: 97.97 kB / 4.301 GB, free: 42.72 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002549/10.17, allocations: 73.75 kB / 4.301 GB, free: 42.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/10.17, allocations: 44.64 kB / 4.301 GB, free: 42.71 MB / 0.5762 GB Notification: Performance of sort global known variables: time 0.001866/10.17, allocations: 0.8687 MB / 4.302 GB, free: 42.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01152/10.18, allocations: 1.918 MB / 4.304 GB, free: 42.52 MB / 0.5762 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.01357/10.2, allocations: 2.421 MB / 4.306 GB, free: 42.15 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007066/10.21, allocations: 2.799 MB / 4.309 GB, free: 42.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-05/10.21, allocations: 8.031 kB / 4.309 GB, free: 42.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002716/10.21, allocations: 1.353 MB / 4.31 GB, free: 42.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/10.21, allocations: 481.6 kB / 4.311 GB, free: 42.04 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007332/10.22, allocations: 2.728 MB / 4.313 GB, free: 41.41 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002118/10.22, allocations: 1.5 MB / 4.315 GB, free: 40.66 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/10.22, allocations: 3.281 kB / 4.315 GB, free: 40.66 MB / 0.5762 GB Notification: Performance of Templates: time 0.1001/10.32, allocations: 65.51 MB / 4.379 GB, free: 15.19 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches