Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001208/0.001208, allocations: 201.2 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 225.5 MB / 234.4 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009777/0.0009777, allocations: 93.66 kB / 286.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3025/0.3025, allocations: 45.13 MB / 383.3 MB, free: 40.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1145/0.4169, allocations: 69.38 MB / 452.7 MB, free: 5.379 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.7006, allocations: 63.23 MB / 0.5039 GB, free: 35.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.482/5.182, allocations: 2.766 GB / 3.27 GB, free: 75.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/5.183, allocations: 93.41 kB / 3.27 GB, free: 75.52 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 1.23/6.413, allocations: 404 MB / 3.665 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/6.413, allocations: 11.03 kB / 3.665 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/6.416, allocations: 333.7 kB / 3.665 GB, free: 58.33 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007821/6.417, allocations: 446 kB / 3.665 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/6.417, allocations: 17.91 kB / 3.665 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/6.417, allocations: 22 kB / 3.665 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006072/6.417, allocations: 367 kB / 3.666 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006255/6.418, allocations: 474.3 kB / 3.666 GB, free: 57.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/6.418, allocations: 5.734 kB / 3.666 GB, free: 57.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.325e-05/6.418, allocations: 0 / 3.666 GB, free: 57.61 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/6.418, allocations: 10.31 kB / 3.666 GB, free: 57.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09807/6.516, allocations: 58.48 MB / 3.723 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/6.516, allocations: 256.1 kB / 3.724 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/6.517, allocations: 125.8 kB / 3.724 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2809/6.798, allocations: 63.56 MB / 3.786 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/6.798, allocations: 40.31 kB / 3.786 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=24): time 2.164e-06/6.798, allocations: 0 / 3.786 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=24): time 0.002251/6.8, allocations: 0.6144 MB / 3.786 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/6.8, allocations: 110.8 kB / 3.787 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/6.8, allocations: 302.3 kB / 3.787 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/6.8, allocations: 25.7 kB / 3.787 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/6.8, allocations: 235.2 kB / 3.787 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/6.801, allocations: 82.55 kB / 3.787 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/6.801, allocations: 0 / 3.787 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.971e-05/6.801, allocations: 353.6 kB / 3.787 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/6.801, allocations: 128.9 kB / 3.788 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/6.801, allocations: 243.2 kB / 3.788 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/6.802, allocations: 289.3 kB / 3.788 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/6.802, allocations: 3.562 kB / 3.788 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002575/6.805, allocations: 0.8298 MB / 3.789 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002079/6.805, allocations: 1.31 MB / 3.79 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/6.805, allocations: 0 / 3.79 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002183/6.805, allocations: 66.48 kB / 3.79 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/6.806, allocations: 95.45 kB / 3.79 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009486/6.807, allocations: 0.7272 MB / 3.791 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/6.807, allocations: 72.95 kB / 3.791 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/6.807, allocations: 20.83 kB / 3.791 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.073e-06/6.807, allocations: 3.719 kB / 3.791 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001094/6.808, allocations: 419.3 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/6.808, allocations: 3.75 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.392e-06/6.808, allocations: 6.469 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/6.809, allocations: 114.4 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/6.809, allocations: 9.75 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/6.809, allocations: 59.05 kB / 3.792 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/6.809, allocations: 22.61 kB / 3.792 GB, free: 105.5 MB / 0.5417 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.0001106/6.809, allocations: 118.3 kB / 3.792 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000582/6.81, allocations: 204.4 kB / 3.792 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/6.812, allocations: 1.692 MB / 3.794 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/6.812, allocations: 19.22 kB / 3.794 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/6.812, allocations: 0 / 3.794 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/6.812, allocations: 0 / 3.794 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/6.814, allocations: 2.266 MB / 3.796 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/6.814, allocations: 1.625 kB / 3.796 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/6.814, allocations: 55.48 kB / 3.796 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000519/6.815, allocations: 0.509 MB / 3.796 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/6.815, allocations: 3.875 kB / 3.796 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009054/6.816, allocations: 1.086 MB / 3.798 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/6.816, allocations: 0 / 3.798 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001859/6.818, allocations: 1.457 MB / 3.799 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002117/6.82, allocations: 1.924 MB / 3.801 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/6.82, allocations: 191.2 kB / 3.801 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/6.82, allocations: 3.312 kB / 3.801 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/6.821, allocations: 34.48 kB / 3.801 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/6.821, allocations: 26.42 kB / 3.801 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/6.821, allocations: 23.11 kB / 3.801 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0002117/6.821, allocations: 230 kB / 3.801 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006242/6.827, allocations: 1.482 MB / 3.803 GB, free: 103.2 MB / 0.5417 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.007103/6.834, allocations: 1.795 MB / 3.805 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001347/6.836, allocations: 0.8913 MB / 3.805 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/6.836, allocations: 0 / 3.805 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005378/6.836, allocations: 0.6296 MB / 3.806 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009853/6.837, allocations: 163.4 kB / 3.806 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/6.839, allocations: 1.071 MB / 3.807 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/6.839, allocations: 0.9728 MB / 3.808 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of SimCode: time 8.11e-07/6.839, allocations: 3.812 kB / 3.808 GB, free: 102.1 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)