Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001243/0.001243, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009119/0.000912, allocations: 88.91 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1731/0.1731, allocations: 45.14 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2193/0.3925, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.4844, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.513/4.998, allocations: 2.766 GB / 3.27 GB, free: 147.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/4.998, allocations: 86.14 kB / 3.27 GB, free: 147.7 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 1.29/6.288, allocations: 414.7 MB / 3.675 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/6.288, allocations: 14.16 kB / 3.675 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002317/6.291, allocations: 275.5 kB / 3.675 GB, free: 68.06 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009423/6.292, allocations: 430.2 kB / 3.675 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.616e-05/6.292, allocations: 23.38 kB / 3.675 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.877e-05/6.292, allocations: 20.06 kB / 3.675 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006783/6.292, allocations: 350.7 kB / 3.676 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006799/6.293, allocations: 477.9 kB / 3.676 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/6.293, allocations: 5.938 kB / 3.676 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/6.293, allocations: 0 / 3.676 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/6.293, allocations: 11.03 kB / 3.676 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07138/6.365, allocations: 40.36 MB / 3.716 GB, free: 41.74 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/6.365, allocations: 199.6 kB / 3.716 GB, free: 41.71 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/6.365, allocations: 93.45 kB / 3.716 GB, free: 41.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1225/6.488, allocations: 63.57 MB / 3.778 GB, free: 31.6 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/6.488, allocations: 39.56 kB / 3.778 GB, free: 31.56 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=22): time 2.996e-06/6.488, allocations: 4 kB / 3.778 GB, free: 31.56 MB / 0.5573 GB Notification: Performance of matching and sorting (n=22): time 0.002754/6.491, allocations: 0.5359 MB / 3.779 GB, free: 31.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/6.491, allocations: 106.9 kB / 3.779 GB, free: 31.37 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/6.491, allocations: 289.1 kB / 3.779 GB, free: 31.27 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/6.491, allocations: 28.52 kB / 3.779 GB, free: 31.23 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/6.492, allocations: 243.6 kB / 3.779 GB, free: 31.08 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.214e-05/6.492, allocations: 81.98 kB / 3.779 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/6.492, allocations: 0 / 3.779 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001322/6.492, allocations: 343.6 kB / 3.78 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/6.492, allocations: 110.3 kB / 3.78 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/6.493, allocations: 264.2 kB / 3.78 GB, free: 30.51 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/6.494, allocations: 265 kB / 3.78 GB, free: 30.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/6.494, allocations: 1.156 kB / 3.78 GB, free: 30.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.003232/6.497, allocations: 0.7619 MB / 3.781 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000933/6.498, allocations: 2.009 MB / 3.783 GB, free: 28.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/6.498, allocations: 5.281 kB / 3.783 GB, free: 28.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/6.499, allocations: 55.91 kB / 3.783 GB, free: 28.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005206/6.499, allocations: 111.4 kB / 3.783 GB, free: 28.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/6.501, allocations: 0.7029 MB / 3.784 GB, free: 27.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007956/6.501, allocations: 84.53 kB / 3.784 GB, free: 27.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.455e-05/6.502, allocations: 24.92 kB / 3.784 GB, free: 27.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/6.502, allocations: 4.312 kB / 3.784 GB, free: 27.77 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001461/6.503, allocations: 385.1 kB / 3.784 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/6.503, allocations: 9.047 kB / 3.784 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/6.503, allocations: 9.688 kB / 3.784 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005428/6.504, allocations: 123.9 kB / 3.784 GB, free: 27.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/6.504, allocations: 10.84 kB / 3.784 GB, free: 27.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005941/6.504, allocations: 59.89 kB / 3.784 GB, free: 27.74 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.857e-05/6.504, allocations: 26.31 kB / 3.784 GB, free: 27.74 MB / 0.5573 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.0002676/6.505, allocations: 122.8 kB / 3.785 GB, free: 27.62 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007256/6.505, allocations: 176.2 kB / 3.785 GB, free: 27.61 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003217/6.509, allocations: 1.539 MB / 3.786 GB, free: 27.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/6.509, allocations: 21.45 kB / 3.786 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/6.509, allocations: 3.469 kB / 3.786 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/6.509, allocations: 5.062 kB / 3.786 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004529/6.513, allocations: 2.08 MB / 3.788 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/6.513, allocations: 1.594 kB / 3.788 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/6.514, allocations: 49.3 kB / 3.788 GB, free: 27.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009946/6.515, allocations: 0.5003 MB / 3.789 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/6.515, allocations: 6.281 kB / 3.789 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/6.516, allocations: 1.064 MB / 3.79 GB, free: 26.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-06/6.516, allocations: 0 / 3.79 GB, free: 26.53 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002923/6.519, allocations: 1.364 MB / 3.791 GB, free: 26.26 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003078/6.523, allocations: 1.823 MB / 3.793 GB, free: 25.62 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/6.523, allocations: 175.3 kB / 3.793 GB, free: 25.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/6.523, allocations: 3.938 kB / 3.793 GB, free: 25.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/6.524, allocations: 34.16 kB / 3.793 GB, free: 25.49 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/6.524, allocations: 22.2 kB / 3.793 GB, free: 25.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/6.524, allocations: 12.83 kB / 3.793 GB, free: 25.49 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0003382/6.524, allocations: 225.9 kB / 3.793 GB, free: 25.41 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008191/6.532, allocations: 1.483 MB / 3.795 GB, free: 25.21 MB / 0.5573 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.009401/6.542, allocations: 1.827 MB / 3.797 GB, free: 24.82 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001697/6.543, allocations: 0.8238 MB / 3.797 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/6.544, allocations: 0 / 3.797 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007314/6.544, allocations: 0.558 MB / 3.798 GB, free: 24.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/6.545, allocations: 154.2 kB / 3.798 GB, free: 24.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/6.548, allocations: 0.9804 MB / 3.799 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007454/6.548, allocations: 0.9588 MB / 3.8 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of SimCode: time 1.153e-06/6.548, allocations: 0 / 3.8 GB, free: 23.66 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1)