Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",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.001918/0.001917, allocations: 179.3 kB / 8.518 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.264/1.264, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0009817/0.0009816, allocations: 82.12 kB / 281.2 MB, free: 5.543 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.1689/0.1689, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/0.381, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.4889, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.488/4.977, allocations: 2.765 GB / 3.259 GB, free: 9.305 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/4.977, allocations: 91.77 kB / 3.259 GB, free: 9.219 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 1.215/6.192, allocations: 414.6 MB / 3.664 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/6.192, allocations: 8 kB / 3.664 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002154/6.194, allocations: 259.2 kB / 3.664 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008666/6.195, allocations: 422.8 kB / 3.665 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/6.195, allocations: 16 kB / 3.665 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/6.195, allocations: 27.94 kB / 3.665 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006361/6.196, allocations: 353.5 kB / 3.665 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006866/6.197, allocations: 478.6 kB / 3.665 GB, free: 9.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/6.197, allocations: 4 kB / 3.665 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/6.197, allocations: 0 / 3.665 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/6.197, allocations: 15.98 kB / 3.665 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2426/6.439, allocations: 35.59 MB / 3.7 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/6.44, allocations: 193.2 kB / 3.7 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/6.44, allocations: 97.59 kB / 3.7 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.118/6.558, allocations: 55.71 MB / 3.755 GB, free: 67.99 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/6.558, allocations: 38.56 kB / 3.755 GB, free: 67.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=22): time 2.986e-06/6.558, allocations: 0 / 3.755 GB, free: 67.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22): time 0.002582/6.561, allocations: 0.5367 MB / 3.755 GB, free: 67.91 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/6.561, allocations: 110.5 kB / 3.755 GB, free: 67.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/6.561, allocations: 296.5 kB / 3.756 GB, free: 67.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.505e-05/6.561, allocations: 29.7 kB / 3.756 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000144/6.562, allocations: 243.8 kB / 3.756 GB, free: 67.51 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.953e-05/6.562, allocations: 75.33 kB / 3.756 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.022e-05/6.562, allocations: 0 / 3.756 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.229e-05/6.562, allocations: 347.5 kB / 3.756 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/6.562, allocations: 107.8 kB / 3.757 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/6.562, allocations: 264.3 kB / 3.757 GB, free: 66.96 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/6.563, allocations: 263.3 kB / 3.757 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/6.563, allocations: 0 / 3.757 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002758/6.566, allocations: 0.7664 MB / 3.758 GB, free: 66.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005172/6.567, allocations: 2.004 MB / 3.76 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/6.567, allocations: 3.906 kB / 3.76 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002951/6.567, allocations: 64.14 kB / 3.76 GB, free: 64.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/6.568, allocations: 102.7 kB / 3.76 GB, free: 64.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/6.569, allocations: 0.7082 MB / 3.761 GB, free: 64.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007627/6.57, allocations: 82.41 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.789e-05/6.57, allocations: 25.34 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/6.57, allocations: 6.781 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001225/6.571, allocations: 381.5 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/6.571, allocations: 3.906 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/6.571, allocations: 8.469 kB / 3.761 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/6.571, allocations: 122.3 kB / 3.761 GB, free: 64.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/6.571, allocations: 12.5 kB / 3.761 GB, free: 64.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/6.572, allocations: 65.02 kB / 3.761 GB, free: 64.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.656e-05/6.572, allocations: 25.59 kB / 3.761 GB, free: 64.21 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (45): * Single equations (assignments): 44 * 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.0001761/6.572, allocations: 124.4 kB / 3.761 GB, free: 64.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/6.573, allocations: 179.5 kB / 3.762 GB, free: 64.08 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/6.575, allocations: 1.539 MB / 3.763 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/6.575, allocations: 13.8 kB / 3.763 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/6.575, allocations: 0 / 3.763 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/6.575, allocations: 3.703 kB / 3.763 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/6.578, allocations: 2.093 MB / 3.765 GB, free: 63.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/6.578, allocations: 3.906 kB / 3.765 GB, free: 63.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/6.578, allocations: 43.27 kB / 3.765 GB, free: 63.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005659/6.579, allocations: 0.5066 MB / 3.766 GB, free: 63.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/6.579, allocations: 11.59 kB / 3.766 GB, free: 63.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/6.58, allocations: 1.055 MB / 3.767 GB, free: 63 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/6.58, allocations: 0 / 3.767 GB, free: 63 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002237/6.582, allocations: 1.368 MB / 3.768 GB, free: 62.73 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002676/6.585, allocations: 1.819 MB / 3.77 GB, free: 62.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/6.585, allocations: 176.2 kB / 3.77 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/6.586, allocations: 7.578 kB / 3.77 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/6.586, allocations: 35.62 kB / 3.77 GB, free: 61.97 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/6.586, allocations: 23.67 kB / 3.77 GB, free: 61.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/6.586, allocations: 22.12 kB / 3.77 GB, free: 61.96 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002803/6.586, allocations: 225.5 kB / 3.77 GB, free: 61.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008/6.594, allocations: 1.454 MB / 3.772 GB, free: 61.87 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 (24): * Single equations (assignments): 20 * 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.01026/6.605, allocations: 1.81 MB / 3.773 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001644/6.606, allocations: 0.8189 MB / 3.774 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/6.607, allocations: 3.812 kB / 3.774 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006683/6.607, allocations: 0.5543 MB / 3.775 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/6.608, allocations: 153.4 kB / 3.775 GB, free: 61.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/6.61, allocations: 0.9846 MB / 3.776 GB, free: 61.39 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006535/6.611, allocations: 0.9619 MB / 3.777 GB, free: 60.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.292e-06/6.611, allocations: 0 / 3.777 GB, free: 60.68 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1)