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: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",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.001523/0.001523, allocations: 204.9 kB / 8.543 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009514/0.0009514, allocations: 98.42 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1814/0.1814, allocations: 45.15 MB / 383.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2328/0.4142, allocations: 69.36 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.5186, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.591/5.109, allocations: 2.824 GB / 3.328 GB, free: 95.64 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/5.11, allocations: 75.97 kB / 3.328 GB, free: 95.57 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.394/7.504, allocations: 0.7557 GB / 4.083 GB, free: 47.74 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/7.504, allocations: 7.688 kB / 4.083 GB, free: 47.74 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004714/7.509, allocations: 0.6321 MB / 4.084 GB, free: 47.66 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002138/7.511, allocations: 1.075 MB / 4.085 GB, free: 47.34 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.308e-05/7.511, allocations: 47.09 kB / 4.085 GB, free: 47.34 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/7.511, allocations: 57.25 kB / 4.085 GB, free: 47.34 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002553/7.514, allocations: 1.756 MB / 4.087 GB, free: 47.33 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002081/7.516, allocations: 1.567 MB / 4.088 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/7.516, allocations: 6.094 kB / 4.088 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/7.516, allocations: 3.969 kB / 4.088 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.759e-05/7.516, allocations: 93.64 kB / 4.088 GB, free: 46.98 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.329/7.845, allocations: 189.3 MB / 4.273 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/7.847, allocations: 1.115 MB / 4.274 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007685/7.848, allocations: 0.5863 MB / 4.275 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2695/8.117, allocations: 19.29 MB / 4.294 GB, free: 181.2 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/8.118, allocations: 42.66 kB / 4.294 GB, free: 181.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=91): time 3.126e-06/8.118, allocations: 3.656 kB / 4.294 GB, free: 181.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=91): time 0.014/8.132, allocations: 3.061 MB / 4.297 GB, free: 181.1 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/8.132, allocations: 219.9 kB / 4.297 GB, free: 180.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/8.133, allocations: 0.7727 MB / 4.298 GB, free: 180.7 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001713/8.133, allocations: 25.7 kB / 4.298 GB, free: 180.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000281/8.133, allocations: 0.4927 MB / 4.298 GB, free: 180.5 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003412/8.134, allocations: 305.9 kB / 4.299 GB, free: 180.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/8.134, allocations: 2.734 kB / 4.299 GB, free: 180.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.826e-05/8.134, allocations: 358.8 kB / 4.299 GB, free: 180 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008861/8.135, allocations: 0.6037 MB / 4.299 GB, free: 180 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009819/8.136, allocations: 0.9592 MB / 4.3 GB, free: 179.6 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006003/8.142, allocations: 1.299 MB / 4.302 GB, free: 179.6 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/8.142, allocations: 2.812 kB / 4.302 GB, free: 179.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.009565/8.151, allocations: 3.074 MB / 4.305 GB, free: 179.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007007/8.152, allocations: 3.741 MB / 4.308 GB, free: 175.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/8.152, allocations: 10.41 kB / 4.308 GB, free: 175.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006196/8.158, allocations: 1.137 MB / 4.309 GB, free: 175.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/8.159, allocations: 278.8 kB / 4.31 GB, free: 175.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005213/8.165, allocations: 2.058 MB / 4.312 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/8.166, allocations: 266.6 kB / 4.312 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/8.167, allocations: 78.83 kB / 4.312 GB, free: 175 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/8.167, allocations: 5.625 kB / 4.312 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006383/8.173, allocations: 1.954 MB / 4.314 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/8.173, allocations: 11.12 kB / 4.314 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008044/8.174, allocations: 199.6 kB / 4.314 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/8.175, allocations: 358.9 kB / 4.314 GB, free: 175 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/8.176, allocations: 0.8281 MB / 4.315 GB, free: 174.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/8.178, allocations: 204.2 kB / 4.315 GB, free: 174.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/8.178, allocations: 72.55 kB / 4.316 GB, free: 174.4 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.0003363/8.179, allocations: 149.4 kB / 4.316 GB, free: 174.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/8.18, allocations: 499.8 kB / 4.316 GB, free: 174.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008655/8.189, allocations: 4.386 MB / 4.32 GB, free: 174 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.593e-05/8.189, allocations: 32.55 kB / 4.32 GB, free: 174 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/8.189, allocations: 0 / 4.32 GB, free: 174 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/8.189, allocations: 8.688 kB / 4.321 GB, free: 174 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/8.199, allocations: 6.07 MB / 4.326 GB, free: 173.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/8.199, allocations: 3.594 kB / 4.326 GB, free: 173.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/8.2, allocations: 119.1 kB / 4.327 GB, free: 173.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004429/8.204, allocations: 2.253 MB / 4.329 GB, free: 173.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.1e-05/8.204, allocations: 20.62 kB / 4.329 GB, free: 173.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005258/8.21, allocations: 2.819 MB / 4.332 GB, free: 172.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/8.21, allocations: 5.719 kB / 4.332 GB, free: 172.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008316/8.218, allocations: 3.661 MB / 4.335 GB, free: 172.2 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008713/8.227, allocations: 4.165 MB / 4.339 GB, free: 171.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009466/8.228, allocations: 0.508 MB / 4.34 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003361/8.228, allocations: 3.938 kB / 4.34 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/8.229, allocations: 100.7 kB / 4.34 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/8.229, allocations: 65.94 kB / 4.34 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/8.229, allocations: 49.56 kB / 4.34 GB, free: 170.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.001131/8.231, allocations: 0.8649 MB / 4.341 GB, free: 170.8 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.009151/8.24, allocations: 2.35 MB / 4.343 GB, free: 170.7 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.009265/8.249, allocations: 2.438 MB / 4.345 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005152/8.254, allocations: 2.796 MB / 4.348 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/8.254, allocations: 0 / 4.348 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00207/8.256, allocations: 1.365 MB / 4.349 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/8.259, allocations: 477.1 kB / 4.35 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/8.264, allocations: 2.721 MB / 4.353 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/8.265, allocations: 1.504 MB / 4.354 GB, free: 169 MB / 0.6511 GB Notification: Performance of SimCode: time 7.61e-07/8.265, allocations: 0 / 4.354 GB, free: 169 MB / 0.6511 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1)