Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 188.3 kB / 7.803 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.2 MB / 213.4 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 86.33 kB / 261.4 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2142/0.2142, allocations: 43.49 MB / 352.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2439/0.4581, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.8528, allocations: 58.85 MB / 476.7 MB, free: 5.285 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.549/7.402, allocations: 2.759 GB / 3.225 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003805/7.403, allocations: 86.48 kB / 3.225 GB, free: 106.6 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.693/9.096, allocations: 410.2 MB / 3.626 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/9.096, allocations: 7.875 kB / 3.626 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/9.099, allocations: 263.4 kB / 3.626 GB, free: 58.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/9.1, allocations: 429.2 kB / 3.626 GB, free: 58.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/9.1, allocations: 21.75 kB / 3.626 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.972e-05/9.1, allocations: 22 kB / 3.626 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007989/9.101, allocations: 351.7 kB / 3.627 GB, free: 58.28 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009253/9.102, allocations: 486.7 kB / 3.627 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/9.102, allocations: 0 / 3.627 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/9.102, allocations: 0 / 3.627 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/9.102, allocations: 10.94 kB / 3.627 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08218/9.184, allocations: 35.59 MB / 3.662 GB, free: 34.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/9.185, allocations: 181 kB / 3.662 GB, free: 34.28 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/9.185, allocations: 101.2 kB / 3.662 GB, free: 34.24 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.423/9.608, allocations: 55.69 MB / 3.716 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/9.608, allocations: 36.91 kB / 3.716 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=22): time 2.685e-06/9.608, allocations: 0 / 3.716 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22): time 0.002599/9.611, allocations: 0.5401 MB / 3.717 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/9.611, allocations: 106.1 kB / 3.717 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004449/9.611, allocations: 295.2 kB / 3.717 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/9.611, allocations: 27.39 kB / 3.717 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/9.611, allocations: 247.7 kB / 3.718 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.82e-05/9.611, allocations: 79.14 kB / 3.718 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.726e-05/9.612, allocations: 0 / 3.718 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001054/9.612, allocations: 346.4 kB / 3.718 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/9.612, allocations: 107.9 kB / 3.718 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/9.612, allocations: 269.5 kB / 3.718 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/9.613, allocations: 260.9 kB / 3.719 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/9.613, allocations: 3.469 kB / 3.719 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002439/9.616, allocations: 0.7563 MB / 3.719 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006458/9.616, allocations: 2.007 MB / 3.721 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/9.616, allocations: 6.875 kB / 3.721 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002661/9.617, allocations: 57.94 kB / 3.721 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/9.617, allocations: 101.6 kB / 3.722 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/9.618, allocations: 0.7097 MB / 3.722 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/9.619, allocations: 79.22 kB / 3.722 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/9.619, allocations: 28.98 kB / 3.722 GB, free: 120 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/9.619, allocations: 3.625 kB / 3.722 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001087/9.62, allocations: 384.5 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/9.62, allocations: 6 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/9.62, allocations: 8.344 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/9.62, allocations: 126.5 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/9.62, allocations: 7.594 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/9.621, allocations: 65.53 kB / 3.723 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/9.621, allocations: 23.78 kB / 3.723 GB, free: 120 MB / 0.5105 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.0002075/9.621, allocations: 119.3 kB / 3.723 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006238/9.622, allocations: 183.2 kB / 3.723 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/9.624, allocations: 1.532 MB / 3.725 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/9.624, allocations: 20.88 kB / 3.725 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/9.624, allocations: 0 / 3.725 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/9.624, allocations: 3.469 kB / 3.725 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/9.627, allocations: 2.085 MB / 3.727 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/9.627, allocations: 0 / 3.727 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/9.627, allocations: 55.69 kB / 3.727 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000585/9.628, allocations: 0.4983 MB / 3.727 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/9.628, allocations: 15.2 kB / 3.727 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/9.629, allocations: 1.056 MB / 3.728 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/9.629, allocations: 3.875 kB / 3.728 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002284/9.631, allocations: 1.358 MB / 3.73 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002945/9.634, allocations: 1.824 MB / 3.731 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/9.635, allocations: 178.3 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.664e-05/9.635, allocations: 5.797 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/9.635, allocations: 38.61 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.699e-05/9.635, allocations: 24.77 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/9.636, allocations: 11 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003636/9.636, allocations: 223.7 kB / 3.732 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009949/9.646, allocations: 1.45 MB / 3.733 GB, free: 117.8 MB / 0.5105 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.01375/9.66, allocations: 1.81 MB / 3.735 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001967/9.662, allocations: 0.8183 MB / 3.736 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/9.662, allocations: 3.25 kB / 3.736 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006947/9.662, allocations: 0.563 MB / 3.736 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/9.664, allocations: 154.5 kB / 3.737 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002461/9.666, allocations: 0.986 MB / 3.738 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007403/9.667, allocations: 0.9571 MB / 3.739 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/9.667, allocations: 0 / 3.739 GB, free: 116.7 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1)