Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 187.9 kB / 7.799 MB, free: 2.5 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.635/1.635, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001047/0.001047, allocations: 91.5 kB / 261.4 MB, free: 13.55 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.2419/0.2419, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2618/0.5038, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.906, allocations: 58.84 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.519/7.425, allocations: 2.76 GB / 3.225 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003982/7.425, allocations: 90.69 kB / 3.225 GB, free: 105.8 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 1.521/8.946, allocations: 399.5 MB / 3.616 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/8.947, allocations: 11.69 kB / 3.616 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002886/8.949, allocations: 315.8 kB / 3.616 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/8.951, allocations: 455.9 kB / 3.616 GB, free: 63.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.433e-05/8.951, allocations: 18.44 kB / 3.616 GB, free: 63.33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/8.951, allocations: 25.69 kB / 3.616 GB, free: 63.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009341/8.952, allocations: 367.3 kB / 3.617 GB, free: 63.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008622/8.953, allocations: 469.7 kB / 3.617 GB, free: 62.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/8.953, allocations: 3.594 kB / 3.617 GB, free: 62.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/8.953, allocations: 0 / 3.617 GB, free: 62.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/8.953, allocations: 11.69 kB / 3.617 GB, free: 62.93 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1142/9.067, allocations: 51.32 MB / 3.667 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004911/9.068, allocations: 251.9 kB / 3.668 GB, free: 29 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/9.068, allocations: 124.8 kB / 3.668 GB, free: 28.88 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3554/9.423, allocations: 55.69 MB / 3.722 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/9.423, allocations: 32.66 kB / 3.722 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.474e-06/9.423, allocations: 0 / 3.722 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002367/9.426, allocations: 0.6157 MB / 3.723 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/9.426, allocations: 111.3 kB / 3.723 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/9.426, allocations: 300.6 kB / 3.723 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/9.426, allocations: 27.27 kB / 3.723 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/9.426, allocations: 239.2 kB / 3.723 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/9.426, allocations: 80.78 kB / 3.723 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/9.427, allocations: 0 / 3.723 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.216e-05/9.427, allocations: 352.3 kB / 3.724 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/9.427, allocations: 129.5 kB / 3.724 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/9.427, allocations: 245.7 kB / 3.724 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/9.428, allocations: 286.8 kB / 3.724 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/9.428, allocations: 5.438 kB / 3.724 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002527/9.431, allocations: 0.8202 MB / 3.725 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002936/9.431, allocations: 1.308 MB / 3.726 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/9.431, allocations: 6.531 kB / 3.726 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/9.431, allocations: 56.81 kB / 3.726 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/9.432, allocations: 97.12 kB / 3.727 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009414/9.433, allocations: 0.7272 MB / 3.727 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005071/9.433, allocations: 77.28 kB / 3.727 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/9.433, allocations: 19.12 kB / 3.727 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.232e-06/9.433, allocations: 3.938 kB / 3.727 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001082/9.434, allocations: 424.3 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/9.434, allocations: 3.938 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.45e-06/9.434, allocations: 3.938 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/9.435, allocations: 113.5 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/9.435, allocations: 14.91 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/9.435, allocations: 53.73 kB / 3.728 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/9.435, allocations: 23.36 kB / 3.728 GB, free: 120.8 MB / 0.5105 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.0001184/9.435, allocations: 120 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/9.436, allocations: 204.6 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/9.438, allocations: 1.679 MB / 3.73 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/9.438, allocations: 15.92 kB / 3.73 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/9.438, allocations: 7.031 kB / 3.73 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/9.438, allocations: 0 / 3.73 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/9.441, allocations: 2.271 MB / 3.732 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/9.441, allocations: 0 / 3.732 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/9.442, allocations: 51.62 kB / 3.732 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005912/9.442, allocations: 0.5105 MB / 3.733 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/9.442, allocations: 7.016 kB / 3.733 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009892/9.443, allocations: 1.081 MB / 3.734 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/9.443, allocations: 5.594 kB / 3.734 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002063/9.445, allocations: 1.462 MB / 3.735 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002296/9.448, allocations: 1.921 MB / 3.737 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002591/9.448, allocations: 187.3 kB / 3.737 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.226e-05/9.448, allocations: 3.281 kB / 3.737 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/9.448, allocations: 36.34 kB / 3.737 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.792e-05/9.448, allocations: 26.58 kB / 3.737 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/9.449, allocations: 11.56 kB / 3.737 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002507/9.449, allocations: 238.3 kB / 3.738 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00784/9.457, allocations: 1.455 MB / 3.739 GB, free: 118.5 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 (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.00942/9.466, allocations: 1.776 MB / 3.741 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001906/9.468, allocations: 0.9017 MB / 3.742 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/9.468, allocations: 0 / 3.742 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000644/9.469, allocations: 0.6222 MB / 3.742 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/9.47, allocations: 162.8 kB / 3.742 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/9.472, allocations: 1.06 MB / 3.743 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006167/9.473, allocations: 0.9756 MB / 3.744 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.914e-06/9.473, allocations: 0 / 3.744 GB, free: 117.4 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)