Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",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.001912/0.001912, allocations: 190.3 kB / 7.8 MB, free: 2.449 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.67/1.67, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001049/0.001049, allocations: 98.47 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.2275/0.2275, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2561/0.4836, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.8857, allocations: 58.85 MB / 476.7 MB, free: 5.316 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.493/7.379, allocations: 2.761 GB / 3.226 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/7.379, allocations: 85.17 kB / 3.226 GB, free: 106.2 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 .... [/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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 2.353/9.732, allocations: 0.6636 GB / 3.89 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/9.732, allocations: 8 kB / 3.89 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006177/9.738, allocations: 0.6864 MB / 3.891 GB, free: 24 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/9.74, allocations: 0.6741 MB / 3.891 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/9.741, allocations: 32 kB / 3.891 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003696/9.741, allocations: 43.98 kB / 3.891 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002318/9.743, allocations: 0.7459 MB / 3.892 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/9.745, allocations: 0.9315 MB / 3.893 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/9.746, allocations: 3.938 kB / 3.893 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/9.746, allocations: 4 kB / 3.893 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/9.746, allocations: 20 kB / 3.893 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5178/10.26, allocations: 102.4 MB / 3.993 GB, free: 60.61 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/10.26, allocations: 0.5202 MB / 3.994 GB, free: 60.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/10.27, allocations: 220.9 kB / 3.994 GB, free: 60.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06964/10.33, allocations: 32.28 MB / 4.025 GB, free: 39.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/10.34, allocations: 39.41 kB / 4.025 GB, free: 39.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/10.34, allocations: 0 / 4.025 GB, free: 39.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.005278/10.34, allocations: 1.139 MB / 4.026 GB, free: 39.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/10.34, allocations: 199 kB / 4.027 GB, free: 39.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008302/10.34, allocations: 478 kB / 4.027 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/10.34, allocations: 27.78 kB / 4.027 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/10.34, allocations: 379.4 kB / 4.028 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/10.34, allocations: 157 kB / 4.028 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/10.34, allocations: 4 kB / 4.028 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001429/10.34, allocations: 371.1 kB / 4.028 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/10.34, allocations: 233.8 kB / 4.028 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005206/10.34, allocations: 488.7 kB / 4.029 GB, free: 38.28 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/10.35, allocations: 0.546 MB / 4.029 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/10.35, allocations: 4 kB / 4.029 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.005103/10.35, allocations: 1.53 MB / 4.031 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007752/10.35, allocations: 2.961 MB / 4.034 GB, free: 35.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/10.35, allocations: 7.469 kB / 4.034 GB, free: 35.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/10.35, allocations: 93.89 kB / 4.034 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008211/10.35, allocations: 209.8 kB / 4.034 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/10.35, allocations: 1.368 MB / 4.035 GB, free: 34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/10.36, allocations: 149.6 kB / 4.035 GB, free: 33.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/10.36, allocations: 46.73 kB / 4.035 GB, free: 33.97 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/10.36, allocations: 10.72 kB / 4.035 GB, free: 33.97 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00238/10.36, allocations: 0.7929 MB / 4.036 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/10.36, allocations: 9.188 kB / 4.036 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/10.36, allocations: 14.03 kB / 4.036 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008497/10.36, allocations: 230.2 kB / 4.036 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/10.36, allocations: 14.22 kB / 4.036 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009962/10.36, allocations: 115.7 kB / 4.037 GB, free: 33.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/10.36, allocations: 55.66 kB / 4.037 GB, free: 33.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002941/10.36, allocations: 133.6 kB / 4.037 GB, free: 33.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/10.36, allocations: 397.6 kB / 4.037 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00498/10.37, allocations: 2.942 MB / 4.04 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/10.37, allocations: 30.53 kB / 4.04 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/10.37, allocations: 4.562 kB / 4.04 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/10.37, allocations: 3.891 kB / 4.04 GB, free: 33.55 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005864/10.37, allocations: 3.854 MB / 4.044 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/10.37, allocations: 1.031 kB / 4.044 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/10.37, allocations: 104.6 kB / 4.044 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/10.37, allocations: 0.6016 MB / 4.045 GB, free: 32.95 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.759e-05/10.38, allocations: 19.34 kB / 4.045 GB, free: 32.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/10.38, allocations: 1.665 MB / 4.046 GB, free: 31.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/10.38, allocations: 5.062 kB / 4.046 GB, free: 31.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004033/10.38, allocations: 2.445 MB / 4.049 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004195/10.39, allocations: 2.954 MB / 4.051 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006598/10.39, allocations: 318 kB / 4.052 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/10.39, allocations: 0 / 4.052 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/10.39, allocations: 70.88 kB / 4.052 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/10.39, allocations: 53.33 kB / 4.052 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/10.39, allocations: 25.06 kB / 4.052 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005963/10.39, allocations: 454.4 kB / 4.052 GB, free: 30.33 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008847/10.4, allocations: 1.616 MB / 4.054 GB, free: 30.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.009628/10.41, allocations: 1.999 MB / 4.056 GB, free: 30.01 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003284/10.41, allocations: 1.569 MB / 4.057 GB, free: 29.99 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/10.41, allocations: 6.156 kB / 4.057 GB, free: 29.99 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001408/10.41, allocations: 1.059 MB / 4.058 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/10.41, allocations: 286 kB / 4.059 GB, free: 29.96 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004012/10.42, allocations: 1.873 MB / 4.061 GB, free: 29.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/10.42, allocations: 1.23 MB / 4.062 GB, free: 28.81 MB / 0.5261 GB Notification: Performance of SimCode: time 1.342e-06/10.42, allocations: 0 / 4.062 GB, free: 28.81 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1)