Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001153/0.001153, allocations: 203 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009338/0.0009338, allocations: 90.8 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 45.16 MB / 383.4 MB, free: 396 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2267/0.4139, allocations: 69.37 MB / 452.7 MB, free: 75.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.5126, allocations: 63.24 MB / 0.5039 GB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.421/4.934, allocations: 2.767 GB / 3.271 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/4.934, allocations: 87.27 kB / 3.271 GB, free: 144.4 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 .... [/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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 1.834/6.768, allocations: 0.6709 GB / 3.942 GB, free: 50.33 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/6.768, allocations: 10.75 kB / 3.942 GB, free: 50.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/6.774, allocations: 0.7118 MB / 3.943 GB, free: 50.29 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/6.775, allocations: 0.6754 MB / 3.944 GB, free: 49.99 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/6.775, allocations: 32.59 kB / 3.944 GB, free: 49.99 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/6.776, allocations: 41.22 kB / 3.944 GB, free: 49.99 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001294/6.777, allocations: 0.7515 MB / 3.944 GB, free: 49.98 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/6.778, allocations: 0.9255 MB / 3.945 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/6.778, allocations: 5.438 kB / 3.945 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.489e-05/6.778, allocations: 4.531 kB / 3.945 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/6.778, allocations: 21.03 kB / 3.945 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3745/7.153, allocations: 116.7 MB / 4.059 GB, free: 122.5 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009515/7.154, allocations: 0.5138 MB / 4.06 GB, free: 122.4 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/7.154, allocations: 224.5 kB / 4.06 GB, free: 122.4 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06118/7.215, allocations: 37.07 MB / 4.096 GB, free: 99.02 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/7.215, allocations: 48.14 kB / 4.096 GB, free: 98.98 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 2.305e-06/7.215, allocations: 0 / 4.096 GB, free: 98.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.004177/7.22, allocations: 1.13 MB / 4.097 GB, free: 98.93 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/7.22, allocations: 196.5 kB / 4.097 GB, free: 98.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/7.22, allocations: 476.5 kB / 4.098 GB, free: 98.61 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.24e-05/7.22, allocations: 25.7 kB / 4.098 GB, free: 98.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/7.221, allocations: 379.3 kB / 4.098 GB, free: 98.39 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/7.221, allocations: 162.2 kB / 4.098 GB, free: 98.31 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/7.221, allocations: 2.531 kB / 4.098 GB, free: 98.31 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 8.121e-05/7.221, allocations: 373.3 kB / 4.099 GB, free: 98 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/7.221, allocations: 228.6 kB / 4.099 GB, free: 98 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/7.222, allocations: 499.2 kB / 4.1 GB, free: 97.69 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/7.224, allocations: 0.5399 MB / 4.1 GB, free: 97.69 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/7.224, allocations: 3.312 kB / 4.1 GB, free: 97.69 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004641/7.229, allocations: 1.533 MB / 4.102 GB, free: 97.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005531/7.229, allocations: 2.957 MB / 4.104 GB, free: 94.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/7.229, allocations: 10.41 kB / 4.104 GB, free: 94.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003279/7.23, allocations: 100.1 kB / 4.105 GB, free: 94.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007383/7.23, allocations: 210.4 kB / 4.105 GB, free: 94.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/7.232, allocations: 1.365 MB / 4.106 GB, free: 93.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/7.233, allocations: 150.7 kB / 4.106 GB, free: 93.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.911e-05/7.233, allocations: 49.83 kB / 4.106 GB, free: 93.44 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/7.233, allocations: 3.75 kB / 4.106 GB, free: 93.44 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002262/7.235, allocations: 0.7887 MB / 4.107 GB, free: 93.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/7.235, allocations: 7.781 kB / 4.107 GB, free: 93.43 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/7.235, allocations: 15.28 kB / 4.107 GB, free: 93.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008166/7.236, allocations: 238.9 kB / 4.107 GB, free: 93.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/7.236, allocations: 14.12 kB / 4.107 GB, free: 93.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007868/7.237, allocations: 114.7 kB / 4.107 GB, free: 93.42 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.007e-05/7.237, allocations: 49.97 kB / 4.107 GB, free: 93.42 MB / 0.573 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.0001928/7.237, allocations: 127.6 kB / 4.108 GB, free: 93.31 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/7.239, allocations: 398.9 kB / 4.108 GB, free: 93.28 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/7.243, allocations: 2.945 MB / 4.111 GB, free: 93.07 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/7.243, allocations: 25.86 kB / 4.111 GB, free: 93.07 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/7.243, allocations: 13.05 kB / 4.111 GB, free: 93.07 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/7.243, allocations: 0 / 4.111 GB, free: 93.07 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/7.247, allocations: 3.861 MB / 4.115 GB, free: 92.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/7.247, allocations: 0 / 4.115 GB, free: 92.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/7.247, allocations: 104.3 kB / 4.115 GB, free: 92.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006615/7.248, allocations: 0.5993 MB / 4.115 GB, free: 92.48 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.796e-05/7.248, allocations: 10.56 kB / 4.115 GB, free: 92.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/7.25, allocations: 1.671 MB / 4.117 GB, free: 91.44 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/7.25, allocations: 0 / 4.117 GB, free: 91.44 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003457/7.253, allocations: 2.446 MB / 4.119 GB, free: 90.98 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003733/7.257, allocations: 2.957 MB / 4.122 GB, free: 90.15 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004538/7.257, allocations: 319.8 kB / 4.123 GB, free: 89.99 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/7.258, allocations: 0 / 4.123 GB, free: 89.99 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007498/7.258, allocations: 62.59 kB / 4.123 GB, free: 89.99 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/7.258, allocations: 59.45 kB / 4.123 GB, free: 89.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.966e-05/7.258, allocations: 28.22 kB / 4.123 GB, free: 89.99 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0005563/7.259, allocations: 449.6 kB / 4.123 GB, free: 89.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00716/7.266, allocations: 1.645 MB / 4.125 GB, free: 89.87 MB / 0.573 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.00731/7.274, allocations: 2.01 MB / 4.127 GB, free: 89.56 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00244/7.276, allocations: 1.575 MB / 4.128 GB, free: 89.53 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/7.276, allocations: 2.188 kB / 4.128 GB, free: 89.53 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001142/7.277, allocations: 1.057 MB / 4.129 GB, free: 89.52 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/7.279, allocations: 279 kB / 4.13 GB, free: 89.51 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/7.282, allocations: 1.873 MB / 4.131 GB, free: 89.08 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/7.283, allocations: 1.228 MB / 4.133 GB, free: 88.36 MB / 0.573 GB Notification: Performance of SimCode: time 6.11e-07/7.283, allocations: 0 / 4.133 GB, free: 88.36 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1)