Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001278/0.001278, allocations: 207 kB / 8.542 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 98.42 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1797/0.1797, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2327/0.4124, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.515, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.594/5.109, allocations: 2.824 GB / 3.328 GB, free: 96.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/5.109, allocations: 75.97 kB / 3.328 GB, free: 96.72 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: 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.553/7.663, allocations: 0.7557 GB / 4.083 GB, free: 47.46 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.183e-05/7.663, allocations: 7.438 kB / 4.083 GB, free: 47.46 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006632/7.669, allocations: 0.6382 MB / 4.084 GB, free: 47.38 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/7.673, allocations: 1.066 MB / 4.085 GB, free: 47.06 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/7.673, allocations: 43.56 kB / 4.085 GB, free: 47.06 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005609/7.673, allocations: 65.78 kB / 4.085 GB, free: 47.06 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003833/7.677, allocations: 1.756 MB / 4.087 GB, free: 47.05 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003863/7.681, allocations: 1.564 MB / 4.088 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.735e-05/7.681, allocations: 3.188 kB / 4.088 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003241/7.682, allocations: 3.812 kB / 4.088 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/7.682, allocations: 90.59 kB / 4.088 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3645/8.046, allocations: 189.3 MB / 4.273 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/8.049, allocations: 1.1 MB / 4.274 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009643/8.05, allocations: 0.5954 MB / 4.275 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2721/8.322, allocations: 19.29 MB / 4.294 GB, free: 181.7 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/8.322, allocations: 42 kB / 4.294 GB, free: 181.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=91): time 2.986e-06/8.322, allocations: 0 / 4.294 GB, free: 181.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=91): time 0.01465/8.337, allocations: 3.057 MB / 4.297 GB, free: 181.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/8.337, allocations: 216.5 kB / 4.297 GB, free: 181.3 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/8.339, allocations: 0.7737 MB / 4.298 GB, free: 181.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0004234/8.339, allocations: 31.52 kB / 4.298 GB, free: 181.1 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/8.339, allocations: 0.4955 MB / 4.298 GB, free: 180.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003477/8.34, allocations: 306.8 kB / 4.299 GB, free: 180.8 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/8.34, allocations: 0 / 4.299 GB, free: 180.8 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.873e-05/8.34, allocations: 357.3 kB / 4.299 GB, free: 180.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009439/8.341, allocations: 0.6028 MB / 4.299 GB, free: 180.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/8.342, allocations: 0.961 MB / 4.3 GB, free: 180.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005996/8.348, allocations: 1.301 MB / 4.302 GB, free: 180.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/8.348, allocations: 3.906 kB / 4.302 GB, free: 180.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01084/8.359, allocations: 3.064 MB / 4.305 GB, free: 179.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008615/8.36, allocations: 3.746 MB / 4.308 GB, free: 176.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/8.36, allocations: 8.312 kB / 4.308 GB, free: 176.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006385/8.366, allocations: 1.133 MB / 4.309 GB, free: 176 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/8.367, allocations: 283.6 kB / 4.31 GB, free: 176 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005571/8.373, allocations: 2.066 MB / 4.312 GB, free: 175.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/8.376, allocations: 262.6 kB / 4.312 GB, free: 175.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/8.376, allocations: 72.69 kB / 4.312 GB, free: 175.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/8.376, allocations: 3.25 kB / 4.312 GB, free: 175.5 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007085/8.383, allocations: 1.96 MB / 4.314 GB, free: 175.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/8.383, allocations: 8.469 kB / 4.314 GB, free: 175.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008861/8.384, allocations: 206.3 kB / 4.314 GB, free: 175.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/8.385, allocations: 358.4 kB / 4.314 GB, free: 175.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/8.387, allocations: 0.8327 MB / 4.315 GB, free: 174.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/8.389, allocations: 205.4 kB / 4.315 GB, free: 174.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/8.389, allocations: 70.44 kB / 4.316 GB, free: 174.9 MB / 0.6511 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.0004816/8.389, allocations: 147.8 kB / 4.316 GB, free: 174.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001741/8.391, allocations: 0.4916 MB / 4.316 GB, free: 174.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009466/8.401, allocations: 4.374 MB / 4.32 GB, free: 174.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/8.401, allocations: 27.2 kB / 4.32 GB, free: 174.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/8.401, allocations: 7.641 kB / 4.32 GB, free: 174.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/8.401, allocations: 3.75 kB / 4.32 GB, free: 174.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/8.413, allocations: 6.081 MB / 4.326 GB, free: 173.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/8.413, allocations: 3.938 kB / 4.326 GB, free: 173.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/8.413, allocations: 115.9 kB / 4.327 GB, free: 173.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004579/8.418, allocations: 2.253 MB / 4.329 GB, free: 173.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/8.418, allocations: 14.03 kB / 4.329 GB, free: 173.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005648/8.424, allocations: 2.829 MB / 4.332 GB, free: 173.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/8.424, allocations: 7.312 kB / 4.332 GB, free: 173.3 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009405/8.433, allocations: 3.654 MB / 4.335 GB, free: 172.6 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009238/8.442, allocations: 4.167 MB / 4.339 GB, free: 171.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/8.444, allocations: 0.5053 MB / 4.34 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000478/8.444, allocations: 8.688 kB / 4.34 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/8.446, allocations: 99.11 kB / 4.34 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/8.446, allocations: 72.2 kB / 4.34 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/8.446, allocations: 40.08 kB / 4.34 GB, free: 171.4 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.001364/8.447, allocations: 0.8701 MB / 4.341 GB, free: 171.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009913/8.457, allocations: 2.349 MB / 4.343 GB, free: 171.2 MB / 0.6511 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.01028/8.468, allocations: 2.436 MB / 4.345 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005887/8.473, allocations: 2.802 MB / 4.348 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/8.473, allocations: 0 / 4.348 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002166/8.476, allocations: 1.358 MB / 4.349 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/8.479, allocations: 478.3 kB / 4.35 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006408/8.485, allocations: 2.725 MB / 4.353 GB, free: 170.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001538/8.487, allocations: 1.498 MB / 4.354 GB, free: 169.5 MB / 0.6511 GB Notification: Performance of SimCode: time 7.81e-07/8.487, allocations: 1.781 kB / 4.354 GB, free: 169.5 MB / 0.6511 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.pipe 2>&1)