Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.005845/0.005845, allocations: 183.7 kB / 7.462 MB, free: 2.457 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.741/0.741, allocations: 133.5 MB / 141.4 MB, free: 15.7 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 95.16 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5494/0.5506, allocations: 88.43 MB / 0.5529 GB, free: 89.01 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.7366, allocations: 82.29 MB / 0.6333 GB, free: 14.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.167/1.904, allocations: 382.2 MB / 1.007 GB, free: 204.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/1.904, allocations: 93.16 kB / 1.007 GB, free: 204.3 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 1.191/3.095, allocations: 421.7 MB / 1.418 GB, free: 88.66 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/3.095, allocations: 12 kB / 1.418 GB, free: 88.65 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/3.096, allocations: 233.5 kB / 1.419 GB, free: 88.42 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/3.101, allocations: 2.141 MB / 1.421 GB, free: 86.25 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.028e-05/3.101, allocations: 47.81 kB / 1.421 GB, free: 86.21 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002395/3.101, allocations: 95.89 kB / 1.421 GB, free: 86.12 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00255/3.104, allocations: 1.63 MB / 1.422 GB, free: 84.48 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/3.106, allocations: 1.684 MB / 1.424 GB, free: 82.74 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/3.106, allocations: 7.938 kB / 1.424 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/3.106, allocations: 0 / 1.424 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.764e-05/3.106, allocations: 39.98 kB / 1.424 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009477/3.116, allocations: 7.191 MB / 1.431 GB, free: 75.29 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/3.117, allocations: 1.24 MB / 1.432 GB, free: 74.04 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006643/3.118, allocations: 0.6289 MB / 1.433 GB, free: 73.41 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004545/3.122, allocations: 3.441 MB / 1.436 GB, free: 69.69 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/3.122, allocations: 51.28 kB / 1.436 GB, free: 69.62 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=86): time 2.645e-06/3.122, allocations: 0 / 1.436 GB, free: 69.62 MB / 0.6823 GB Notification: Performance of matching and sorting (n=86): time 0.002378/3.125, allocations: 1.172 MB / 1.438 GB, free: 68.45 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/3.125, allocations: 60.19 kB / 1.438 GB, free: 68.38 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/3.127, allocations: 1.266 MB / 1.439 GB, free: 67.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.482e-05/3.127, allocations: 25.7 kB / 1.439 GB, free: 67.07 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000381/3.127, allocations: 0.6075 MB / 1.44 GB, free: 66.45 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.00028/3.127, allocations: 295.7 kB / 1.44 GB, free: 66.16 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/3.127, allocations: 0 / 1.44 GB, free: 66.16 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001271/3.128, allocations: 365.8 kB / 1.44 GB, free: 65.79 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008277/3.128, allocations: 0.6715 MB / 1.441 GB, free: 65.12 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009345/3.129, allocations: 0.9947 MB / 1.442 GB, free: 63.99 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002715/3.132, allocations: 1.259 MB / 1.443 GB, free: 62.73 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/3.132, allocations: 11.88 kB / 1.443 GB, free: 62.71 MB / 0.6823 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004297/3.136, allocations: 2.222 MB / 1.445 GB, free: 60.48 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008028/3.137, allocations: 3.491 MB / 1.449 GB, free: 56.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/3.137, allocations: 15.91 kB / 1.449 GB, free: 56.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.83e-05/3.137, allocations: 16 kB / 1.449 GB, free: 56.69 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/3.139, allocations: 343.5 kB / 1.449 GB, free: 56.35 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/3.139, allocations: 19.94 kB / 1.449 GB, free: 56.33 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/3.14, allocations: 162.3 kB / 1.449 GB, free: 56.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/3.14, allocations: 55.98 kB / 1.449 GB, free: 56.12 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/3.14, allocations: 6.969 kB / 1.449 GB, free: 56.11 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003717/3.144, allocations: 2.065 MB / 1.451 GB, free: 54.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/3.144, allocations: 11.98 kB / 1.451 GB, free: 54.04 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/3.144, allocations: 16.88 kB / 1.451 GB, free: 54.02 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/3.145, allocations: 339.5 kB / 1.452 GB, free: 53.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/3.145, allocations: 23.92 kB / 1.452 GB, free: 53.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/3.147, allocations: 126.8 kB / 1.452 GB, free: 53.54 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/3.147, allocations: 63.98 kB / 1.452 GB, free: 53.48 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003131/3.147, allocations: 136.4 kB / 1.452 GB, free: 53.34 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002947/3.147, allocations: 134.3 kB / 1.452 GB, free: 53.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/3.15, allocations: 1.313 MB / 1.453 GB, free: 51.88 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/3.15, allocations: 8 kB / 1.453 GB, free: 51.88 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/3.15, allocations: 0 / 1.453 GB, free: 51.88 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001725/3.152, allocations: 1.371 MB / 1.455 GB, free: 50.42 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004806/3.157, allocations: 2.817 MB / 1.457 GB, free: 47.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/3.157, allocations: 0 / 1.457 GB, free: 47.57 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/3.157, allocations: 171.8 kB / 1.458 GB, free: 47.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.329e-05/3.157, allocations: 8.094 kB / 1.458 GB, free: 47.39 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/3.158, allocations: 19.98 kB / 1.458 GB, free: 47.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/3.158, allocations: 4 kB / 1.458 GB, free: 47.37 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/3.158, allocations: 0 / 1.458 GB, free: 47.37 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002865/3.16, allocations: 2.016 MB / 1.46 GB, free: 45.32 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003672/3.164, allocations: 3.088 MB / 1.463 GB, free: 42.19 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009337/3.165, allocations: 395 kB / 1.463 GB, free: 41.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004056/3.165, allocations: 8 kB / 1.463 GB, free: 41.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/3.166, allocations: 43.8 kB / 1.463 GB, free: 41.73 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/3.167, allocations: 40.66 kB / 1.463 GB, free: 41.69 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/3.167, allocations: 43.91 kB / 1.463 GB, free: 41.65 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001675/3.168, allocations: 0.9732 MB / 1.464 GB, free: 40.67 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004831/3.173, allocations: 1.052 MB / 1.465 GB, free: 39.62 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/3.174, allocations: 0.4903 MB / 1.466 GB, free: 39.16 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003069/3.177, allocations: 2.306 MB / 1.468 GB, free: 36.85 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/3.177, allocations: 128 / 1.468 GB, free: 36.85 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005196/3.178, allocations: 0.5103 MB / 1.468 GB, free: 36.34 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/3.181, allocations: 0.5911 MB / 1.469 GB, free: 35.77 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005473/3.186, allocations: 3.06 MB / 1.472 GB, free: 32.66 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/3.188, allocations: 1.866 MB / 1.474 GB, free: 30.76 MB / 0.6823 GB Notification: Performance of SimCode: time 1.623e-06/3.188, allocations: 3.938 kB / 1.474 GB, free: 30.76 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)