Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2",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 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 175 kB / 8.516 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.4 MB / 230.3 MB, free: 7.684 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009571/0.0009571, allocations: 94.22 kB / 281.2 MB, free: 5.508 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1688/0.1688, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2049/0.3738, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.4808, allocations: 61.92 MB / 0.4942 GB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.27/4.75, allocations: 2.77 GB / 3.264 GB, free: 3.055 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/4.751, allocations: 90.94 kB / 3.264 GB, free: 2.973 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 441 * Number of variables: 441 Notification: Performance of Generate backend data structure: time 2.441/7.191, allocations: 0.8144 GB / 4.079 GB, free: 85.06 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/7.191, allocations: 12.81 kB / 4.079 GB, free: 85.06 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007228/7.199, allocations: 0.9132 MB / 4.08 GB, free: 84.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/7.201, allocations: 1.104 MB / 4.081 GB, free: 84.71 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002987/7.202, allocations: 399.6 kB / 4.081 GB, free: 84.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/7.202, allocations: 103.1 kB / 4.081 GB, free: 84.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00304/7.205, allocations: 1.904 MB / 4.083 GB, free: 84.38 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003356/7.208, allocations: 2.423 MB / 4.085 GB, free: 83.63 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.946e-05/7.208, allocations: 13.53 kB / 4.085 GB, free: 83.63 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/7.209, allocations: 7.781 kB / 4.085 GB, free: 83.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.725e-05/7.209, allocations: 86.33 kB / 4.085 GB, free: 83.62 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/7.223, allocations: 16.73 MB / 4.102 GB, free: 71.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007559/7.224, allocations: 493.2 kB / 4.102 GB, free: 71.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/7.225, allocations: 393 kB / 4.103 GB, free: 71.83 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008785/7.226, allocations: 0.6825 MB / 4.103 GB, free: 71.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/7.226, allocations: 49.62 kB / 4.103 GB, free: 71.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=95): time 2.555e-06/7.226, allocations: 0 / 4.103 GB, free: 71.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=111): time 0.009009/7.235, allocations: 3.396 MB / 4.107 GB, free: 70.62 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/7.235, allocations: 166.9 kB / 4.107 GB, free: 70.43 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/7.236, allocations: 0.9999 MB / 4.108 GB, free: 70.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.417e-05/7.236, allocations: 30.17 kB / 4.108 GB, free: 70.22 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000371/7.236, allocations: 0.8611 MB / 4.109 GB, free: 69.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/7.237, allocations: 384.9 kB / 4.109 GB, free: 69.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/7.237, allocations: 3.875 kB / 4.109 GB, free: 69.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001399/7.237, allocations: 458.3 kB / 4.109 GB, free: 69.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007391/7.238, allocations: 0.5539 MB / 4.11 GB, free: 69.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/7.239, allocations: 1.77 MB / 4.112 GB, free: 67.56 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/7.24, allocations: 0.9086 MB / 4.113 GB, free: 67.55 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/7.24, allocations: 17.62 kB / 4.113 GB, free: 67.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=293) (initialization): time 0.005618/7.246, allocations: 2.846 MB / 4.115 GB, free: 67.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/7.246, allocations: 16.67 kB / 4.115 GB, free: 67.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/7.246, allocations: 41.09 kB / 4.115 GB, free: 67.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/7.247, allocations: 428.5 kB / 4.116 GB, free: 67.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/7.249, allocations: 0.5401 MB / 4.116 GB, free: 67.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/7.251, allocations: 2.84 MB / 4.119 GB, free: 65.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/7.253, allocations: 206.4 kB / 4.119 GB, free: 65.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002876/7.253, allocations: 144.7 kB / 4.12 GB, free: 65.27 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume2_1.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume2_2.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume1_1.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume1_2.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 28 (source2.medium.phase,source1.medium.phase,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,volume1_1.regularFlow[1],volume1_1.regularFlow[2],volume1_1.regularFlow[3],volume1_2.regularFlow[1],volume1_2.regularFlow[2],volume1_2.regularFlow[3],volume2_1.regularFlow[1],volume2_1.regularFlow[2],volume2_2.regularFlow[1],volume2_2.regularFlow[2],sink2.medium.phase,volume2_2.inFlow[2],volume2_2.inFlow[1],volume2_1.inFlow[2],volume2_1.inFlow[1],sink1.medium.phase,volume1_2.inFlow[3],volume1_2.inFlow[2],volume1_2.inFlow[1],volume1_1.inFlow[3],volume1_1.inFlow[2],volume1_1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 261 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004739/7.254, allocations: 229.2 kB / 4.12 GB, free: 65.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/7.255, allocations: 0.5706 MB / 4.12 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/7.26, allocations: 4.488 MB / 4.125 GB, free: 64.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/7.26, allocations: 44.75 kB / 4.125 GB, free: 64.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/7.26, allocations: 1.422 kB / 4.125 GB, free: 64.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/7.26, allocations: 9 kB / 4.125 GB, free: 64.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007122/7.267, allocations: 6.219 MB / 4.131 GB, free: 63.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/7.268, allocations: 2.938 kB / 4.131 GB, free: 63.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007257/7.268, allocations: 198.3 kB / 4.131 GB, free: 63.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009908/7.269, allocations: 426.1 kB / 4.131 GB, free: 63.88 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.03e-05/7.269, allocations: 25.19 kB / 4.131 GB, free: 63.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/7.271, allocations: 2.935 MB / 4.134 GB, free: 61.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.413e-06/7.271, allocations: 15.84 kB / 4.134 GB, free: 61.79 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005656/7.277, allocations: 4.742 MB / 4.139 GB, free: 60.93 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006653/7.283, allocations: 6.301 MB / 4.145 GB, free: 59.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007886/7.284, allocations: 486.7 kB / 4.146 GB, free: 59.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/7.285, allocations: 9.375 kB / 4.146 GB, free: 59.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/7.286, allocations: 129.4 kB / 4.146 GB, free: 59.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/7.286, allocations: 110.2 kB / 4.146 GB, free: 59.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-05/7.286, allocations: 63.2 kB / 4.146 GB, free: 59.46 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001048/7.287, allocations: 0.8591 MB / 4.147 GB, free: 59.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007239/7.294, allocations: 1.611 MB / 4.148 GB, free: 59.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (volume1_1.medium.h,volume1_2.medium.h,volume2_1.medium.h,volume2_2.medium.h) * Number of discrete variables: 26 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,volume1_1.heatTransfer.states[1].phase,volume1_2.heatTransfer.states[1].phase,volume2_1.heatTransfer.states[1].phase,volume2_2.heatTransfer.states[1].phase,source1.medium.phase,source2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 5,2 5,2 5,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.008556/7.303, allocations: 2.295 MB / 4.151 GB, free: 59.06 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003503/7.307, allocations: 2.465 MB / 4.153 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/7.307, allocations: 3.344 kB / 4.153 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002138/7.309, allocations: 1.854 MB / 4.155 GB, free: 59.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002801/7.311, allocations: 0.5278 MB / 4.155 GB, free: 59.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/7.317, allocations: 3.817 MB / 4.159 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/7.318, allocations: 1.787 MB / 4.161 GB, free: 57.47 MB / 0.5417 GB Notification: Performance of SimCode: time 1.001e-06/7.318, allocations: 3.188 kB / 4.161 GB, free: 57.47 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTemperature2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTemperature2.pipe 2>&1)