Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009854/0.0009855, allocations: 192.6 kB / 7.807 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.082/1.082, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009579/0.0009578, allocations: 94.08 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1589/0.1589, allocations: 43.5 MB / 352.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.303e-06/7.674e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2467, allocations: 58.83 MB / 476.6 MB, free: 5.309 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.449/4.696, allocations: 2.817 GB / 3.283 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/4.696, allocations: 79.95 kB / 3.283 GB, free: 49.54 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.273/6.969, allocations: 0.7445 GB / 4.027 GB, free: 40 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.472e-05/6.969, allocations: 37.39 kB / 4.027 GB, free: 40 MB / 0.5105 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.01141/6.981, allocations: 2.912 MB / 4.03 GB, free: 38.48 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/6.981, allocations: 11.47 kB / 4.03 GB, free: 38.48 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004975/6.986, allocations: 0.6276 MB / 4.031 GB, free: 38.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/6.989, allocations: 1.076 MB / 4.032 GB, free: 37.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.071e-05/6.989, allocations: 51.02 kB / 4.032 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002057/6.989, allocations: 61.09 kB / 4.032 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003091/6.992, allocations: 1.747 MB / 4.034 GB, free: 37.12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/6.994, allocations: 1.567 MB / 4.035 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/6.995, allocations: 6.75 kB / 4.035 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/6.995, allocations: 4.219 kB / 4.035 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/6.995, allocations: 91.8 kB / 4.035 GB, free: 36.32 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4894/7.484, allocations: 167.3 MB / 4.199 GB, free: 59.42 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/7.486, allocations: 1.108 MB / 4.2 GB, free: 59.37 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006833/7.487, allocations: 0.5813 MB / 4.2 GB, free: 59.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02842/7.515, allocations: 16.91 MB / 4.217 GB, free: 48.26 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/7.515, allocations: 50.44 kB / 4.217 GB, free: 48.22 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 2.625e-06/7.515, allocations: 0 / 4.217 GB, free: 48.22 MB / 0.5417 GB Notification: Performance of matching and sorting (n=91): time 0.01338/7.529, allocations: 3.044 MB / 4.22 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/7.529, allocations: 217.1 kB / 4.22 GB, free: 47.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/7.53, allocations: 0.7786 MB / 4.221 GB, free: 47.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001298/7.53, allocations: 27.27 kB / 4.221 GB, free: 47.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/7.53, allocations: 498.5 kB / 4.221 GB, free: 47.45 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/7.531, allocations: 322 kB / 4.222 GB, free: 47.29 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.7e-05/7.531, allocations: 0 / 4.222 GB, free: 47.29 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.994e-05/7.531, allocations: 353.6 kB / 4.222 GB, free: 46.99 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008007/7.532, allocations: 0.6029 MB / 4.223 GB, free: 46.99 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009285/7.533, allocations: 0.9515 MB / 4.224 GB, free: 46.58 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0054/7.538, allocations: 1.285 MB / 4.225 GB, free: 46.55 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/7.538, allocations: 3.844 kB / 4.225 GB, free: 46.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.009108/7.547, allocations: 3.055 MB / 4.228 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000585/7.548, allocations: 3.746 MB / 4.231 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/7.548, allocations: 7.719 kB / 4.231 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005969/7.554, allocations: 1.14 MB / 4.233 GB, free: 42.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/7.555, allocations: 284.5 kB / 4.233 GB, free: 42.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005005/7.56, allocations: 2.05 MB / 4.235 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/7.562, allocations: 264.2 kB / 4.235 GB, free: 41.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/7.562, allocations: 71.2 kB / 4.235 GB, free: 41.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.789e-06/7.562, allocations: 3.812 kB / 4.235 GB, free: 41.81 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006247/7.568, allocations: 1.944 MB / 4.237 GB, free: 41.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/7.568, allocations: 10.5 kB / 4.237 GB, free: 41.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007825/7.569, allocations: 211.5 kB / 4.237 GB, free: 41.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/7.571, allocations: 352.4 kB / 4.238 GB, free: 41.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/7.572, allocations: 0.8375 MB / 4.238 GB, free: 41.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/7.573, allocations: 199.7 kB / 4.239 GB, free: 41.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/7.573, allocations: 78.55 kB / 4.239 GB, free: 41.18 MB / 0.5417 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.0003558/7.574, allocations: 139.9 kB / 4.239 GB, free: 41.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/7.575, allocations: 0.4893 MB / 4.239 GB, free: 41.01 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008159/7.583, allocations: 4.367 MB / 4.244 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/7.583, allocations: 31.56 kB / 4.244 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/7.583, allocations: 0 / 4.244 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/7.583, allocations: 10.88 kB / 4.244 GB, free: 40.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009824/7.593, allocations: 6.053 MB / 4.249 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/7.593, allocations: 3.562 kB / 4.249 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004869/7.594, allocations: 117.8 kB / 4.25 GB, free: 40.15 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004161/7.598, allocations: 2.257 MB / 4.252 GB, free: 40.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.091e-05/7.598, allocations: 19 kB / 4.252 GB, free: 40.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004963/7.603, allocations: 2.809 MB / 4.255 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/7.603, allocations: 3.938 kB / 4.255 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008053/7.611, allocations: 3.651 MB / 4.258 GB, free: 38.79 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/7.612, allocations: 0.5017 MB / 4.259 GB, free: 38.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/7.613, allocations: 5.375 kB / 4.259 GB, free: 38.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/7.614, allocations: 95.8 kB / 4.259 GB, free: 38.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/7.614, allocations: 68.86 kB / 4.259 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.425e-05/7.614, allocations: 44.27 kB / 4.259 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001259/7.616, allocations: 0.8708 MB / 4.26 GB, free: 38.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01077/7.626, allocations: 1.919 MB / 4.262 GB, free: 38.38 MB / 0.5417 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.009831/7.636, allocations: 2.409 MB / 4.264 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005993/7.642, allocations: 2.805 MB / 4.267 GB, free: 37.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/7.642, allocations: 0 / 4.267 GB, free: 37.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002187/7.644, allocations: 1.36 MB / 4.268 GB, free: 37.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/7.647, allocations: 469.5 kB / 4.268 GB, free: 37.92 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/7.652, allocations: 2.725 MB / 4.271 GB, free: 37.28 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/7.653, allocations: 1.499 MB / 4.273 GB, free: 36.54 MB / 0.5417 GB Notification: Performance of SimCode: time 4.91e-07/7.653, allocations: 0 / 4.273 GB, free: 36.54 MB / 0.5417 GB Notification: Performance of Templates: time 0.08423/7.737, allocations: 65.38 MB / 4.336 GB, free: 3.16 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestExamplesVariants/InverseParameterization_turbulent/InverseParameterization_turbulent.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches