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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) [: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.001019/0.001019, allocations: 178.4 kB / 8.52 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.637 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009272/0.0009274, allocations: 88.03 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1973/0.1973, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2069/0.4042, allocations: 68.03 MB / 444.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.5175, allocations: 61.92 MB / 0.4942 GB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.298/5.816, allocations: 2.823 GB / 3.317 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/5.816, allocations: 76.09 kB / 3.317 GB, free: 155.2 MB / 0.5105 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: 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 2.181/7.997, allocations: 0.7555 GB / 4.072 GB, free: 3.617 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/7.997, allocations: 13.44 kB / 4.072 GB, free: 3.605 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/8.002, allocations: 0.6265 MB / 4.073 GB, free: 2.977 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002882/8.005, allocations: 1.069 MB / 4.074 GB, free: 1.883 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.168e-05/8.005, allocations: 48 kB / 4.074 GB, free: 1.836 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/8.006, allocations: 64 kB / 4.074 GB, free: 1.773 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003017/8.009, allocations: 1.75 MB / 4.076 GB, free: 20 kB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.261/8.27, allocations: 1.569 MB / 4.077 GB, free: 80.53 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/8.27, allocations: 6.969 kB / 4.077 GB, free: 80.53 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/8.27, allocations: 3.5 kB / 4.077 GB, free: 80.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.754e-05/8.27, allocations: 87.97 kB / 4.077 GB, free: 80.52 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3101/8.58, allocations: 167.4 MB / 4.241 GB, free: 39.84 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002069/8.582, allocations: 1.11 MB / 4.242 GB, free: 39.8 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000744/8.583, allocations: 0.5799 MB / 4.243 GB, free: 39.79 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2715/8.854, allocations: 16.91 MB / 4.259 GB, free: 140.8 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/8.855, allocations: 46.91 kB / 4.259 GB, free: 140.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=91): time 2.885e-06/8.855, allocations: 0 / 4.259 GB, free: 140.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=91): time 0.01371/8.868, allocations: 3.041 MB / 4.262 GB, free: 140.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/8.868, allocations: 223.6 kB / 4.262 GB, free: 140.4 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/8.87, allocations: 0.766 MB / 4.263 GB, free: 140.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001745/8.87, allocations: 29.64 kB / 4.263 GB, free: 140.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/8.87, allocations: 0.4995 MB / 4.264 GB, free: 140 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.00028/8.87, allocations: 301.3 kB / 4.264 GB, free: 139.9 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/8.87, allocations: 0 / 4.264 GB, free: 139.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.092e-05/8.87, allocations: 362.5 kB / 4.264 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008669/8.871, allocations: 0.6052 MB / 4.265 GB, free: 139.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009694/8.872, allocations: 0.9533 MB / 4.266 GB, free: 139.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005737/8.878, allocations: 1.285 MB / 4.267 GB, free: 139.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/8.878, allocations: 3.938 kB / 4.267 GB, free: 139.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.009971/8.888, allocations: 3.051 MB / 4.27 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006729/8.889, allocations: 3.745 MB / 4.274 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/8.889, allocations: 9.219 kB / 4.274 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00621/8.895, allocations: 1.132 MB / 4.275 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/8.896, allocations: 289.6 kB / 4.275 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005358/8.902, allocations: 2.05 MB / 4.277 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/8.904, allocations: 260.4 kB / 4.277 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/8.904, allocations: 76.95 kB / 4.277 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/8.904, allocations: 3.844 kB / 4.277 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006692/8.911, allocations: 1.953 MB / 4.279 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/8.911, allocations: 8.938 kB / 4.279 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008212/8.912, allocations: 200.4 kB / 4.279 GB, free: 134.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/8.913, allocations: 365.6 kB / 4.28 GB, free: 134.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/8.914, allocations: 0.832 MB / 4.281 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/8.916, allocations: 203.3 kB / 4.281 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/8.917, allocations: 71.72 kB / 4.281 GB, free: 134 MB / 0.6042 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.0004888/8.917, allocations: 146 kB / 4.281 GB, free: 133.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001615/8.919, allocations: 0.4914 MB / 4.281 GB, free: 133.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00924/8.928, allocations: 4.364 MB / 4.286 GB, free: 133.6 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/8.928, allocations: 28.69 kB / 4.286 GB, free: 133.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/8.928, allocations: 0 / 4.286 GB, free: 133.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/8.928, allocations: 5.25 kB / 4.286 GB, free: 133.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/8.94, allocations: 6.065 MB / 4.292 GB, free: 133 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/8.94, allocations: 3.594 kB / 4.292 GB, free: 133 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/8.941, allocations: 120.2 kB / 4.292 GB, free: 133 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004488/8.945, allocations: 2.249 MB / 4.294 GB, free: 133 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/8.945, allocations: 20.02 kB / 4.294 GB, free: 133 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005331/8.951, allocations: 2.817 MB / 4.297 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.577e-06/8.951, allocations: 5.625 kB / 4.297 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008793/8.959, allocations: 3.647 MB / 4.3 GB, free: 131.7 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009399/8.969, allocations: 4.149 MB / 4.304 GB, free: 130.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/8.97, allocations: 0.5087 MB / 4.305 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005381/8.971, allocations: 9.672 kB / 4.305 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/8.972, allocations: 98.58 kB / 4.305 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/8.972, allocations: 75.05 kB / 4.305 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/8.972, allocations: 42.92 kB / 4.305 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001431/8.974, allocations: 0.8661 MB / 4.306 GB, free: 130.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01018/8.984, allocations: 2.313 MB / 4.308 GB, free: 130.4 MB / 0.6042 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.01059/8.995, allocations: 2.409 MB / 4.311 GB, free: 130.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005931/9.001, allocations: 2.804 MB / 4.313 GB, free: 130.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/9.001, allocations: 0 / 4.313 GB, free: 130.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002101/9.003, allocations: 1.358 MB / 4.315 GB, free: 130.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/9.006, allocations: 480.3 kB / 4.315 GB, free: 130.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005815/9.012, allocations: 2.727 MB / 4.318 GB, free: 129.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/9.013, allocations: 1.496 MB / 4.319 GB, free: 128.7 MB / 0.6042 GB Notification: Performance of SimCode: time 9.02e-07/9.013, allocations: 3 kB / 4.319 GB, free: 128.7 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1)