Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.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) 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(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",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.001231/0.001231, allocations: 174.4 kB / 8.471 MB, free: 1.855 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.077/1.077, allocations: 205.2 MB / 214.1 MB, free: 5.074 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000818/0.000818, allocations: 82.28 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1576/0.1585, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06364/0.2221, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5007/0.7229, allocations: 320.1 MB / 0.6668 GB, free: 71.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.7232, allocations: 79.33 kB / 0.6669 GB, free: 71.09 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.3764/1.1, allocations: 132.3 MB / 0.796 GB, free: 114.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/1.1, allocations: 9.219 kB / 0.7961 GB, free: 114.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004337/1.1, allocations: 92.56 kB / 0.7961 GB, free: 114.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/1.101, allocations: 0.6677 MB / 0.7968 GB, free: 113.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.737e-05/1.102, allocations: 89.83 kB / 0.7969 GB, free: 113.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/1.102, allocations: 38.88 kB / 0.7969 GB, free: 113.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001331/1.103, allocations: 0.7721 MB / 0.7977 GB, free: 113.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/1.104, allocations: 0.8294 MB / 0.7985 GB, free: 112.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/1.104, allocations: 0 / 0.7985 GB, free: 112.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.357e-05/1.104, allocations: 2.188 kB / 0.7985 GB, free: 112.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.505e-05/1.105, allocations: 58.86 kB / 0.7985 GB, free: 112.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005088/1.11, allocations: 3.169 MB / 0.8016 GB, free: 110.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006777/1.11, allocations: 0.5034 MB / 0.8021 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004517/1.111, allocations: 363.7 kB / 0.8025 GB, free: 110 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002503/1.113, allocations: 2.018 MB / 0.8044 GB, free: 108.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/1.113, allocations: 38.34 kB / 0.8045 GB, free: 108.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.475e-06/1.113, allocations: 0 / 0.8045 GB, free: 108.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.007131/1.12, allocations: 2.568 MB / 0.807 GB, free: 105.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/1.121, allocations: 85.77 kB / 0.8071 GB, free: 105.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/1.121, allocations: 450.1 kB / 0.8075 GB, free: 105.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/1.121, allocations: 29.7 kB / 0.8075 GB, free: 105.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/1.121, allocations: 272 kB / 0.8078 GB, free: 105 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/1.121, allocations: 216.7 kB / 0.808 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-05/1.121, allocations: 0 / 0.808 GB, free: 104.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/1.122, allocations: 374.8 kB / 0.8083 GB, free: 104.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/1.122, allocations: 353.4 kB / 0.8087 GB, free: 104.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/1.122, allocations: 495.1 kB / 0.8092 GB, free: 103.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004193/1.127, allocations: 1.053 MB / 0.8102 GB, free: 102.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.127, allocations: 4 kB / 0.8102 GB, free: 102.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005222/1.132, allocations: 1.752 MB / 0.8119 GB, free: 100.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/1.132, allocations: 1.571 MB / 0.8134 GB, free: 99.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/1.132, allocations: 4 kB / 0.8134 GB, free: 99.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007724/1.133, allocations: 364.2 kB / 0.8138 GB, free: 98.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006466/1.134, allocations: 159.7 kB / 0.8139 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/1.135, allocations: 1.266 MB / 0.8152 GB, free: 97.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/1.136, allocations: 27.91 kB / 0.8152 GB, free: 97.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.741e-05/1.136, allocations: 35.98 kB / 0.8152 GB, free: 97.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.633e-06/1.136, allocations: 4 kB / 0.8152 GB, free: 97.16 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004822/1.141, allocations: 1.576 MB / 0.8168 GB, free: 95.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/1.141, allocations: 4 kB / 0.8168 GB, free: 95.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006096/1.142, allocations: 308.8 kB / 0.8171 GB, free: 95.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006338/1.142, allocations: 167.7 kB / 0.8172 GB, free: 95.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/1.144, allocations: 1.103 MB / 0.8183 GB, free: 93.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000597/1.145, allocations: 27.88 kB / 0.8183 GB, free: 93.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.012e-05/1.145, allocations: 35.98 kB / 0.8184 GB, free: 93.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000174/1.145, allocations: 124.8 kB / 0.8185 GB, free: 93.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/1.145, allocations: 71.16 kB / 0.8186 GB, free: 93.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/1.148, allocations: 1.257 MB / 0.8198 GB, free: 92.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/1.148, allocations: 8 kB / 0.8198 GB, free: 92.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/1.148, allocations: 0 / 0.8198 GB, free: 92.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/1.148, allocations: 3.984 kB / 0.8198 GB, free: 92.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003542/1.151, allocations: 2.075 MB / 0.8218 GB, free: 90.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/1.151, allocations: 0 / 0.8218 GB, free: 90.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005723/1.152, allocations: 115.9 kB / 0.8219 GB, free: 90.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007058/1.153, allocations: 376.5 kB / 0.8223 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.638e-05/1.153, allocations: 15.92 kB / 0.8223 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/1.154, allocations: 1.255 MB / 0.8235 GB, free: 88.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.154, allocations: 4 kB / 0.8235 GB, free: 88.54 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002852/1.157, allocations: 1.755 MB / 0.8253 GB, free: 86.76 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003421/1.161, allocations: 2.662 MB / 0.8279 GB, free: 84.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/1.161, allocations: 236.1 kB / 0.8281 GB, free: 83.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/1.161, allocations: 4 kB / 0.8281 GB, free: 83.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006107/1.162, allocations: 43.89 kB / 0.8281 GB, free: 83.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/1.162, allocations: 52.56 kB / 0.8282 GB, free: 83.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.791e-05/1.162, allocations: 31.98 kB / 0.8282 GB, free: 83.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002976/1.162, allocations: 338.9 kB / 0.8285 GB, free: 83.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002764/1.165, allocations: 0.6832 MB / 0.8292 GB, free: 82.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001178/1.166, allocations: 0.5945 MB / 0.8298 GB, free: 82.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/1.168, allocations: 1.361 MB / 0.8311 GB, free: 80.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.169, allocations: 0 / 0.8311 GB, free: 80.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/1.169, allocations: 450.2 kB / 0.8315 GB, free: 80.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/1.171, allocations: 304.2 kB / 0.8318 GB, free: 80.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/1.173, allocations: 1.354 MB / 0.8331 GB, free: 78.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005929/1.174, allocations: 1.108 MB / 0.8342 GB, free: 77.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.402e-06/1.174, allocations: 4 kB / 0.8342 GB, free: 77.51 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)