Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",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.001438/0.001438, allocations: 179.4 kB / 8.517 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.275/1.275, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0008439/0.0008439, allocations: 83.98 kB / 281.2 MB, free: 5.531 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.1617/0.1617, allocations: 44.14 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1975/0.3592, allocations: 68.04 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.459, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8646/1.324, allocations: 422 MB / 0.9063 GB, free: 185.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/1.324, allocations: 96.19 kB / 0.9064 GB, free: 185.9 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.2334/1.557, allocations: 122.3 MB / 1.026 GB, free: 73.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/1.557, allocations: 8 kB / 1.026 GB, free: 73.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004277/1.558, allocations: 91.05 kB / 1.026 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009698/1.559, allocations: 0.5366 MB / 1.026 GB, free: 72.36 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.452e-05/1.559, allocations: 88.33 kB / 1.027 GB, free: 72.26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/1.559, allocations: 31.91 kB / 1.027 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009102/1.56, allocations: 0.5606 MB / 1.027 GB, free: 71.67 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009307/1.561, allocations: 0.7508 MB / 1.028 GB, free: 70.84 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/1.561, allocations: 0 / 1.028 GB, free: 70.84 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-05/1.561, allocations: 4 kB / 1.028 GB, free: 70.84 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.079e-05/1.561, allocations: 48.91 kB / 1.028 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/1.565, allocations: 3.989 MB / 1.032 GB, free: 66.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/1.565, allocations: 230.5 kB / 1.032 GB, free: 66.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/1.565, allocations: 173.2 kB / 1.032 GB, free: 66.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/1.566, allocations: 344.7 kB / 1.033 GB, free: 65.73 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/1.566, allocations: 38.84 kB / 1.033 GB, free: 65.69 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=34): time 1.784e-06/1.566, allocations: 0 / 1.033 GB, free: 65.69 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.002932/1.569, allocations: 1.271 MB / 1.034 GB, free: 64.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/1.569, allocations: 132.5 kB / 1.034 GB, free: 64.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004276/1.569, allocations: 450 kB / 1.034 GB, free: 63.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/1.569, allocations: 25.7 kB / 1.034 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/1.569, allocations: 323 kB / 1.035 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/1.569, allocations: 138.1 kB / 1.035 GB, free: 63.26 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/1.57, allocations: 4 kB / 1.035 GB, free: 63.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.192e-05/1.57, allocations: 366.7 kB / 1.035 GB, free: 62.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/1.57, allocations: 205.5 kB / 1.035 GB, free: 62.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/1.57, allocations: 494.3 kB / 1.036 GB, free: 62.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005961/1.571, allocations: 332.4 kB / 1.036 GB, free: 61.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/1.571, allocations: 4 kB / 1.036 GB, free: 61.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001778/1.573, allocations: 0.8861 MB / 1.037 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/1.573, allocations: 8.031 kB / 1.037 GB, free: 60.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/1.573, allocations: 8 kB / 1.037 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008295/1.573, allocations: 239.8 kB / 1.037 GB, free: 60.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/1.574, allocations: 123.8 kB / 1.037 GB, free: 60.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007641/1.575, allocations: 0.886 MB / 1.038 GB, free: 59.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/1.575, allocations: 39.94 kB / 1.038 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-05/1.575, allocations: 36 kB / 1.038 GB, free: 59.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.000126/1.576, allocations: 136.8 kB / 1.038 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.246e-05/1.576, allocations: 63.25 kB / 1.039 GB, free: 59.28 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/1.577, allocations: 0.6147 MB / 1.039 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/1.577, allocations: 11.98 kB / 1.039 GB, free: 58.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.577, allocations: 4 kB / 1.039 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/1.577, allocations: 0 / 1.039 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/1.579, allocations: 1.507 MB / 1.041 GB, free: 57.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/1.579, allocations: 4.031 kB / 1.041 GB, free: 57.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009683/1.58, allocations: 179.7 kB / 1.041 GB, free: 56.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002369/1.58, allocations: 56.8 kB / 1.041 GB, free: 56.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/1.58, allocations: 7.984 kB / 1.041 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/1.582, allocations: 2.675 MB / 1.043 GB, free: 53.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.582, allocations: 11.83 kB / 1.043 GB, free: 53.85 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001326/1.583, allocations: 0.9841 MB / 1.044 GB, free: 52.79 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00172/1.585, allocations: 1.635 MB / 1.046 GB, free: 51.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/1.585, allocations: 188.3 kB / 1.046 GB, free: 50.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/1.585, allocations: 12.06 kB / 1.046 GB, free: 50.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/1.586, allocations: 15.98 kB / 1.046 GB, free: 50.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.828e-05/1.586, allocations: 31.86 kB / 1.046 GB, free: 50.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/1.586, allocations: 19.98 kB / 1.046 GB, free: 50.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003399/1.586, allocations: 334.9 kB / 1.047 GB, free: 50.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001749/1.588, allocations: 219.9 kB / 1.047 GB, free: 50.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000641/1.589, allocations: 267.1 kB / 1.047 GB, free: 49.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009803/1.59, allocations: 0.5313 MB / 1.048 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.748e-06/1.59, allocations: 0.8125 kB / 1.048 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00127/1.591, allocations: 474 kB / 1.048 GB, free: 48.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/1.592, allocations: 255.2 kB / 1.048 GB, free: 48.74 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/1.594, allocations: 0.9706 MB / 1.049 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005243/1.594, allocations: 1.028 MB / 1.05 GB, free: 46.67 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/1.594, allocations: 0 / 1.05 GB, free: 46.67 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1)