Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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_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_trunk_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_trunk_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 trunk/package.mo): time 0.001214/0.001214, allocations: 203.1 kB / 8.541 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009167/0.0009167, allocations: 96.16 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2342/0.2342, allocations: 45.14 MB / 383.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.018e-05/1.02e-05, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1567, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.93/7.086, allocations: 2.824 GB / 3.327 GB, free: 82.43 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/7.087, allocations: 75.95 kB / 3.327 GB, free: 82.36 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.944/10.03, allocations: 0.7527 GB / 4.08 GB, free: 50.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002732/10.03, allocations: 37.5 kB / 4.08 GB, free: 50.8 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.01683/10.05, allocations: 2.938 MB / 4.083 GB, free: 49.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/10.05, allocations: 8.625 kB / 4.083 GB, free: 49.56 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005649/10.05, allocations: 0.6373 MB / 4.084 GB, free: 49.48 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003613/10.06, allocations: 1.065 MB / 4.085 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/10.06, allocations: 49.48 kB / 4.085 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005604/10.06, allocations: 59.78 kB / 4.085 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003614/10.06, allocations: 1.751 MB / 4.087 GB, free: 49.15 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/10.06, allocations: 1.567 MB / 4.088 GB, free: 48.81 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/10.06, allocations: 3.75 kB / 4.088 GB, free: 48.81 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/10.06, allocations: 3.969 kB / 4.088 GB, free: 48.81 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.574e-05/10.06, allocations: 94.95 kB / 4.088 GB, free: 48.8 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6841/10.75, allocations: 189.3 MB / 4.273 GB, free: 165.8 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/10.75, allocations: 1.115 MB / 4.274 GB, free: 165.8 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007553/10.75, allocations: 0.5828 MB / 4.275 GB, free: 165.8 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03281/10.78, allocations: 19.28 MB / 4.294 GB, free: 153.4 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/10.78, allocations: 42.69 kB / 4.294 GB, free: 153.4 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=91): time 3.306e-06/10.78, allocations: 0 / 4.294 GB, free: 153.4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=91): time 0.01446/10.8, allocations: 3.066 MB / 4.297 GB, free: 153.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/10.8, allocations: 224.5 kB / 4.297 GB, free: 153.1 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/10.8, allocations: 0.7717 MB / 4.298 GB, free: 152.9 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0002194/10.8, allocations: 25.7 kB / 4.298 GB, free: 152.9 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000327/10.8, allocations: 0.498 MB / 4.298 GB, free: 152.6 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/10.8, allocations: 306.5 kB / 4.298 GB, free: 152.5 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.942e-05/10.8, allocations: 2.75 kB / 4.298 GB, free: 152.5 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001098/10.8, allocations: 351.4 kB / 4.299 GB, free: 152.2 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009528/10.8, allocations: 0.6058 MB / 4.299 GB, free: 152.2 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/10.8, allocations: 0.9515 MB / 4.3 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005881/10.81, allocations: 1.303 MB / 4.302 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/10.81, allocations: 3.688 kB / 4.302 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00991/10.82, allocations: 3.066 MB / 4.305 GB, free: 151.7 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008026/10.82, allocations: 3.751 MB / 4.308 GB, free: 147.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/10.82, allocations: 10.22 kB / 4.308 GB, free: 147.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00625/10.83, allocations: 1.127 MB / 4.309 GB, free: 147.7 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/10.83, allocations: 284.9 kB / 4.31 GB, free: 147.7 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005677/10.83, allocations: 2.06 MB / 4.312 GB, free: 147.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002535/10.84, allocations: 268.7 kB / 4.312 GB, free: 147.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/10.84, allocations: 74.17 kB / 4.312 GB, free: 147.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/10.84, allocations: 6.375 kB / 4.312 GB, free: 147.2 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007049/10.84, allocations: 1.948 MB / 4.314 GB, free: 147.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/10.84, allocations: 10.34 kB / 4.314 GB, free: 147.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008577/10.84, allocations: 209.1 kB / 4.314 GB, free: 147.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/10.85, allocations: 361.9 kB / 4.314 GB, free: 147.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/10.85, allocations: 0.8323 MB / 4.315 GB, free: 146.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/10.85, allocations: 196.2 kB / 4.315 GB, free: 146.6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/10.85, allocations: 72.95 kB / 4.315 GB, free: 146.6 MB / 0.6355 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.0005577/10.85, allocations: 150.8 kB / 4.316 GB, free: 146.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001573/10.85, allocations: 0.4894 MB / 4.316 GB, free: 146.4 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009895/10.86, allocations: 4.38 MB / 4.32 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/10.86, allocations: 31.97 kB / 4.32 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/10.86, allocations: 3.906 kB / 4.32 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/10.86, allocations: 6.609 kB / 4.32 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/10.87, allocations: 6.074 MB / 4.326 GB, free: 145.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/10.87, allocations: 5.672 kB / 4.326 GB, free: 145.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/10.87, allocations: 114 kB / 4.326 GB, free: 145.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004448/10.88, allocations: 2.254 MB / 4.329 GB, free: 145.6 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/10.88, allocations: 20.94 kB / 4.329 GB, free: 145.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005527/10.88, allocations: 2.821 MB / 4.331 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/10.88, allocations: 5.375 kB / 4.331 GB, free: 145 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009196/10.89, allocations: 3.658 MB / 4.335 GB, free: 144.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/10.9, allocations: 0.5011 MB / 4.335 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/10.9, allocations: 10.7 kB / 4.335 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/10.9, allocations: 96.3 kB / 4.336 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/10.9, allocations: 79.42 kB / 4.336 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.243e-05/10.9, allocations: 38.03 kB / 4.336 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001301/10.9, allocations: 0.8689 MB / 4.337 GB, free: 144 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01019/10.91, allocations: 1.934 MB / 4.338 GB, free: 144 MB / 0.6355 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.01301/10.92, allocations: 2.438 MB / 4.341 GB, free: 143.7 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.006208/10.93, allocations: 2.798 MB / 4.344 GB, free: 143.7 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/10.93, allocations: 0 / 4.344 GB, free: 143.7 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002316/10.93, allocations: 1.363 MB / 4.345 GB, free: 143.7 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/10.93, allocations: 475.3 kB / 4.345 GB, free: 143.6 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/10.94, allocations: 2.724 MB / 4.348 GB, free: 143 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/10.94, allocations: 1.501 MB / 4.349 GB, free: 142.3 MB / 0.6355 GB Notification: Performance of SimCode: time 1.342e-06/10.94, allocations: 0 / 4.349 GB, free: 142.3 MB / 0.6355 GB Notification: Performance of Templates: time 0.1036/11.04, allocations: 65.61 MB / 4.414 GB, free: 138.8 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1)