Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.001547/0.001547, allocations: 173.8 kB / 8.515 MB, free: 1.828 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.186/1.186, allocations: 221.4 MB / 230.3 MB, free: 7.852 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.001038/0.001038, allocations: 90.84 kB / 281.2 MB, free: 5.594 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.1834/0.1834, allocations: 44.14 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2091/0.3925, allocations: 68.04 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.5036, allocations: 61.92 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.342/4.846, allocations: 2.765 GB / 3.259 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/4.846, allocations: 83.78 kB / 3.259 GB, free: 8.766 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 1.26/6.106, allocations: 403.8 MB / 3.654 GB, free: 6.184 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/6.106, allocations: 11.98 kB / 3.654 GB, free: 6.172 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002545/6.108, allocations: 326.8 kB / 3.654 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009799/6.109, allocations: 443.1 kB / 3.655 GB, free: 5.383 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/6.109, allocations: 20 kB / 3.655 GB, free: 5.363 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/6.109, allocations: 24 kB / 3.655 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006033/6.11, allocations: 369.8 kB / 3.655 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006258/6.111, allocations: 469.9 kB / 3.655 GB, free: 4.469 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/6.111, allocations: 4 kB / 3.655 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/6.111, allocations: 0 / 3.655 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/6.111, allocations: 12 kB / 3.655 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2651/6.376, allocations: 51.29 MB / 3.705 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/6.376, allocations: 266.3 kB / 3.706 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/6.376, allocations: 131.6 kB / 3.706 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09983/6.476, allocations: 55.71 MB / 3.76 GB, free: 68.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/6.476, allocations: 35.72 kB / 3.76 GB, free: 68.08 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/6.476, allocations: 0 / 3.76 GB, free: 68.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002323/6.479, allocations: 0.6138 MB / 3.761 GB, free: 68.04 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/6.479, allocations: 105.9 kB / 3.761 GB, free: 67.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/6.479, allocations: 307.4 kB / 3.761 GB, free: 67.81 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/6.479, allocations: 25.7 kB / 3.761 GB, free: 67.78 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/6.479, allocations: 240.2 kB / 3.762 GB, free: 67.65 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/6.479, allocations: 84.03 kB / 3.762 GB, free: 67.61 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/6.479, allocations: 0 / 3.762 GB, free: 67.61 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.078e-05/6.479, allocations: 346.5 kB / 3.762 GB, free: 67.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/6.48, allocations: 127.3 kB / 3.762 GB, free: 67.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/6.48, allocations: 248.6 kB / 3.762 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/6.481, allocations: 286 kB / 3.763 GB, free: 67.15 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/6.481, allocations: 5.5 kB / 3.763 GB, free: 67.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002545/6.484, allocations: 0.8222 MB / 3.763 GB, free: 67.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002114/6.484, allocations: 1.308 MB / 3.765 GB, free: 65.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/6.484, allocations: 10.67 kB / 3.765 GB, free: 65.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/6.484, allocations: 58 kB / 3.765 GB, free: 65.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/6.485, allocations: 96.67 kB / 3.765 GB, free: 65.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009751/6.486, allocations: 0.7219 MB / 3.766 GB, free: 65.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/6.486, allocations: 75.56 kB / 3.766 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/6.486, allocations: 22.58 kB / 3.766 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/6.486, allocations: 9.25 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001106/6.487, allocations: 420.7 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/6.487, allocations: 3.969 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.253e-06/6.487, allocations: 3.5 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004006/6.488, allocations: 117 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/6.488, allocations: 3.594 kB / 3.766 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/6.488, allocations: 63.78 kB / 3.766 GB, free: 65.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/6.488, allocations: 24.78 kB / 3.766 GB, free: 65.15 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001172/6.488, allocations: 124.4 kB / 3.766 GB, free: 65.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/6.489, allocations: 206.4 kB / 3.767 GB, free: 65.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/6.491, allocations: 1.675 MB / 3.768 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/6.491, allocations: 20.98 kB / 3.768 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/6.491, allocations: 0 / 3.768 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/6.491, allocations: 0 / 3.768 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/6.493, allocations: 2.265 MB / 3.77 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/6.493, allocations: 3.875 kB / 3.77 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/6.493, allocations: 51.8 kB / 3.77 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/6.494, allocations: 0.5134 MB / 3.771 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/6.494, allocations: 10.22 kB / 3.771 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008931/6.495, allocations: 1.078 MB / 3.772 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/6.495, allocations: 7.156 kB / 3.772 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001893/6.497, allocations: 1.454 MB / 3.773 GB, free: 63.68 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002234/6.499, allocations: 1.918 MB / 3.775 GB, free: 63.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/6.499, allocations: 186.5 kB / 3.776 GB, free: 62.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.956e-05/6.499, allocations: 0 / 3.776 GB, free: 62.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/6.5, allocations: 49.12 kB / 3.776 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/6.5, allocations: 26.16 kB / 3.776 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/6.5, allocations: 15.48 kB / 3.776 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002409/6.5, allocations: 235.1 kB / 3.776 GB, free: 62.82 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00672/6.507, allocations: 1.458 MB / 3.777 GB, free: 62.81 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007465/6.514, allocations: 1.779 MB / 3.779 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001168/6.516, allocations: 0.8977 MB / 3.78 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/6.516, allocations: 1.625 kB / 3.78 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004972/6.516, allocations: 0.619 MB / 3.78 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008892/6.517, allocations: 176.3 kB / 3.781 GB, free: 62.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/6.518, allocations: 1.073 MB / 3.782 GB, free: 62.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/6.519, allocations: 0.9735 MB / 3.783 GB, free: 61.6 MB / 0.5261 GB Notification: Performance of SimCode: time 3e-07/6.519, allocations: 0 / 3.783 GB, free: 61.6 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)