Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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_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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") [: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.001024/0.001024, allocations: 183.8 kB / 8.518 MB, free: 0.4922 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.4 MB / 230.3 MB, free: 13.54 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 95.92 kB / 281.2 MB, free: 10.5 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2374/0.2374, allocations: 44.15 MB / 376.1 MB, free: 11.65 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 8.627e-06/9.618e-06, allocations: 4 kB / 444 MB, free: 54.36 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.142, allocations: 61.9 MB / 0.4941 GB, free: 8.395 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.183/6.325, allocations: 2.823 GB / 3.317 GB, free: 42.62 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/6.325, allocations: 79.95 kB / 3.317 GB, free: 42.54 MB / 0.5183 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.689/9.014, allocations: 0.7526 GB / 4.069 GB, free: 44.16 MB / 0.5339 GB Notification: Performance of Transformations before backend: time 0.0001767/9.015, allocations: 37.3 kB / 4.069 GB, free: 44.15 MB / 0.5339 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.01376/9.028, allocations: 2.915 MB / 4.072 GB, free: 42.76 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/9.028, allocations: 11.41 kB / 4.072 GB, free: 42.75 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00541/9.034, allocations: 0.6297 MB / 4.073 GB, free: 42.68 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003366/9.037, allocations: 1.077 MB / 4.074 GB, free: 42.32 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/9.037, allocations: 53.16 kB / 4.074 GB, free: 42.31 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005067/9.038, allocations: 61.88 kB / 4.074 GB, free: 42.31 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003812/9.042, allocations: 1.748 MB / 4.076 GB, free: 42.3 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/9.044, allocations: 1.572 MB / 4.077 GB, free: 41.95 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/9.045, allocations: 7.906 kB / 4.077 GB, free: 41.94 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/9.045, allocations: 7.469 kB / 4.077 GB, free: 41.94 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-05/9.045, allocations: 86.91 kB / 4.077 GB, free: 41.94 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5988/9.644, allocations: 167.3 MB / 4.241 GB, free: 76.89 MB / 0.5652 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/9.646, allocations: 1.111 MB / 4.242 GB, free: 76.85 MB / 0.5652 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/9.647, allocations: 0.5882 MB / 4.243 GB, free: 76.84 MB / 0.5652 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0317/9.679, allocations: 16.91 MB / 4.259 GB, free: 65.75 MB / 0.5652 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.856e-05/9.679, allocations: 51.28 kB / 4.259 GB, free: 65.71 MB / 0.5652 GB Notification: Performance of pre-optimization done (n=91): time 2.925e-06/9.679, allocations: 0 / 4.259 GB, free: 65.71 MB / 0.5652 GB Notification: Performance of matching and sorting (n=91): time 0.01583/9.695, allocations: 3.048 MB / 4.262 GB, free: 65.61 MB / 0.5652 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/9.695, allocations: 217.8 kB / 4.262 GB, free: 65.36 MB / 0.5652 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/9.697, allocations: 0.7773 MB / 4.263 GB, free: 65.21 MB / 0.5652 GB Notification: Performance of collectPreVariables (initialization): time 0.0001989/9.697, allocations: 25.7 kB / 4.263 GB, free: 65.18 MB / 0.5652 GB Notification: Performance of collectInitialEqns (initialization): time 0.000377/9.697, allocations: 0.4942 MB / 4.264 GB, free: 64.94 MB / 0.5652 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004196/9.698, allocations: 309.8 kB / 4.264 GB, free: 64.78 MB / 0.5652 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/9.698, allocations: 0 / 4.264 GB, free: 64.78 MB / 0.5652 GB Notification: Performance of setup shared object (initialization): time 0.0001295/9.698, allocations: 353.3 kB / 4.264 GB, free: 64.48 MB / 0.5652 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/9.699, allocations: 0.6034 MB / 4.265 GB, free: 64.47 MB / 0.5652 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/9.7, allocations: 0.9579 MB / 4.266 GB, free: 64.07 MB / 0.5652 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00596/9.706, allocations: 1.286 MB / 4.267 GB, free: 64.04 MB / 0.5652 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/9.706, allocations: 0 / 4.267 GB, free: 64.04 MB / 0.5652 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01039/9.717, allocations: 3.057 MB / 4.27 GB, free: 63.9 MB / 0.5652 GB Notification: Performance of prepare postOptimizeDAE: time 0.001313/9.718, allocations: 3.742 MB / 4.274 GB, free: 59.97 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.766e-05/9.718, allocations: 7.5 kB / 4.274 GB, free: 59.97 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006472/9.725, allocations: 1.138 MB / 4.275 GB, free: 59.91 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/9.726, allocations: 285.8 kB / 4.275 GB, free: 59.91 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005678/9.732, allocations: 2.049 MB / 4.277 GB, free: 59.36 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/9.734, allocations: 262.7 kB / 4.277 GB, free: 59.31 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/9.734, allocations: 77.88 kB / 4.277 GB, free: 59.3 MB / 0.5652 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/9.734, allocations: 3.688 kB / 4.277 GB, free: 59.3 MB / 0.5652 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007132/9.741, allocations: 1.946 MB / 4.279 GB, free: 59.25 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/9.742, allocations: 11.72 kB / 4.279 GB, free: 59.25 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008592/9.742, allocations: 205.1 kB / 4.279 GB, free: 59.24 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/9.744, allocations: 357.7 kB / 4.28 GB, free: 59.23 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/9.745, allocations: 0.8308 MB / 4.281 GB, free: 58.71 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/9.747, allocations: 204.2 kB / 4.281 GB, free: 58.67 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/9.747, allocations: 67.53 kB / 4.281 GB, free: 58.67 MB / 0.5652 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.0005182/9.748, allocations: 152.4 kB / 4.281 GB, free: 58.56 MB / 0.5652 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001684/9.75, allocations: 499.4 kB / 4.281 GB, free: 58.51 MB / 0.5652 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009733/9.759, allocations: 4.364 MB / 4.286 GB, free: 58.2 MB / 0.5652 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.128e-05/9.759, allocations: 24.02 kB / 4.286 GB, free: 58.2 MB / 0.5652 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/9.759, allocations: 7.312 kB / 4.286 GB, free: 58.2 MB / 0.5652 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/9.759, allocations: 6.891 kB / 4.286 GB, free: 58.2 MB / 0.5652 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/9.772, allocations: 6.06 MB / 4.292 GB, free: 57.65 MB / 0.5652 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/9.772, allocations: 3.375 kB / 4.292 GB, free: 57.65 MB / 0.5652 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005408/9.773, allocations: 114.4 kB / 4.292 GB, free: 57.64 MB / 0.5652 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004751/9.777, allocations: 2.265 MB / 4.294 GB, free: 57.54 MB / 0.5652 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/9.777, allocations: 18.47 kB / 4.294 GB, free: 57.54 MB / 0.5652 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/9.783, allocations: 2.809 MB / 4.297 GB, free: 56.96 MB / 0.5652 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/9.783, allocations: 9.656 kB / 4.297 GB, free: 56.96 MB / 0.5652 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009521/9.793, allocations: 3.644 MB / 4.3 GB, free: 56.29 MB / 0.5652 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/9.794, allocations: 0.5034 MB / 4.301 GB, free: 56.11 MB / 0.5652 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005359/9.795, allocations: 5.875 kB / 4.301 GB, free: 56.11 MB / 0.5652 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/9.796, allocations: 96.06 kB / 4.301 GB, free: 56.1 MB / 0.5652 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/9.796, allocations: 75.19 kB / 4.301 GB, free: 56.09 MB / 0.5652 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/9.797, allocations: 46.41 kB / 4.301 GB, free: 56.09 MB / 0.5652 GB Notification: Performance of sort global known variables: time 0.001514/9.798, allocations: 0.8658 MB / 4.302 GB, free: 55.98 MB / 0.5652 GB Notification: Performance of remove unused functions: time 0.009929/9.808, allocations: 1.919 MB / 4.304 GB, free: 55.88 MB / 0.5652 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.01237/9.82, allocations: 2.408 MB / 4.306 GB, free: 55.52 MB / 0.5652 GB Notification: Performance of simCode: created initialization part: time 0.00626/9.827, allocations: 2.804 MB / 4.309 GB, free: 55.46 MB / 0.5652 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/9.827, allocations: 0 / 4.309 GB, free: 55.46 MB / 0.5652 GB Notification: Performance of simCode: created simulation system equations: time 0.00226/9.829, allocations: 1.358 MB / 4.31 GB, free: 55.43 MB / 0.5652 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/9.832, allocations: 477.1 kB / 4.311 GB, free: 55.41 MB / 0.5652 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006553/9.839, allocations: 2.734 MB / 4.313 GB, free: 54.78 MB / 0.5652 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/9.84, allocations: 1.495 MB / 4.315 GB, free: 54.03 MB / 0.5652 GB Notification: Performance of SimCode: time 4.91e-07/9.84, allocations: 0 / 4.315 GB, free: 54.03 MB / 0.5652 GB Notification: Performance of Templates: time 0.09686/9.937, allocations: 65.5 MB / 4.379 GB, free: 33.54 MB / 0.5652 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1)