Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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) 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(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 184 kB / 8.138 MB, free: 2.223 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.157/1.157, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0008924/0.0008924, allocations: 95.98 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09582/0.09675, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.2787, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5043/0.783, allocations: 320.7 MB / 0.6912 GB, free: 121.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.7833, allocations: 79.62 kB / 0.6912 GB, free: 121.1 MB / 442.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.269/1.052, allocations: 135.1 MB / 0.8232 GB, free: 2.551 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/1.052, allocations: 12 kB / 0.8232 GB, free: 2.539 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/1.053, allocations: 94.95 kB / 0.8233 GB, free: 2.445 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/1.054, allocations: 0.6597 MB / 0.8239 GB, free: 1.742 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.935e-05/1.054, allocations: 92.7 kB / 0.824 GB, free: 1.641 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/1.054, allocations: 32 kB / 0.8241 GB, free: 1.609 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001031/1.055, allocations: 0.7639 MB / 0.8248 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1165/1.172, allocations: 0.8282 MB / 0.8256 GB, free: 129.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.046e-05/1.172, allocations: 6.062 kB / 0.8256 GB, free: 129.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002558/1.172, allocations: 0 / 0.8256 GB, free: 129.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-05/1.172, allocations: 53.05 kB / 0.8257 GB, free: 129.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005154/1.177, allocations: 3.166 MB / 0.8288 GB, free: 128.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006108/1.178, allocations: 0.5074 MB / 0.8293 GB, free: 128.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003947/1.178, allocations: 361.2 kB / 0.8296 GB, free: 128.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002341/1.181, allocations: 2.017 MB / 0.8316 GB, free: 127 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/1.181, allocations: 42.72 kB / 0.8316 GB, free: 127 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.344e-06/1.181, allocations: 0 / 0.8316 GB, free: 127 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.006803/1.187, allocations: 2.552 MB / 0.8341 GB, free: 126.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/1.187, allocations: 89.42 kB / 0.8342 GB, free: 126.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004761/1.188, allocations: 459.9 kB / 0.8346 GB, free: 126.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.753e-05/1.188, allocations: 25.7 kB / 0.8347 GB, free: 126.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.333e-05/1.188, allocations: 267.9 kB / 0.8349 GB, free: 126.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/1.188, allocations: 220.5 kB / 0.8351 GB, free: 126.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/1.188, allocations: 0 / 0.8351 GB, free: 126.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.632e-05/1.188, allocations: 377.4 kB / 0.8355 GB, free: 125.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/1.189, allocations: 348.4 kB / 0.8358 GB, free: 125.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/1.189, allocations: 0.4901 MB / 0.8363 GB, free: 125.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/1.191, allocations: 0.7191 MB / 0.837 GB, free: 125.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.191, allocations: 0 / 0.837 GB, free: 125.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002972/1.194, allocations: 1.414 MB / 0.8384 GB, free: 125.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002052/1.195, allocations: 1.568 MB / 0.8399 GB, free: 123.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.195, allocations: 3.844 kB / 0.8399 GB, free: 123.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007337/1.195, allocations: 355.5 kB / 0.8402 GB, free: 123.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006292/1.196, allocations: 160.3 kB / 0.8404 GB, free: 123.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/1.198, allocations: 1.266 MB / 0.8416 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006502/1.198, allocations: 34.94 kB / 0.8417 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.37e-05/1.199, allocations: 31.75 kB / 0.8417 GB, free: 123.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/1.199, allocations: 8.156 kB / 0.8417 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002731/1.201, allocations: 1.234 MB / 0.8429 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/1.201, allocations: 3 kB / 0.8429 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/1.202, allocations: 310 kB / 0.8432 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/1.203, allocations: 163 kB / 0.8434 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/1.204, allocations: 1.105 MB / 0.8444 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/1.205, allocations: 35.53 kB / 0.8445 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.936e-05/1.205, allocations: 35.83 kB / 0.8445 GB, free: 122.8 MB / 442.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.000167/1.205, allocations: 123.6 kB / 0.8446 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/1.205, allocations: 71.84 kB / 0.8447 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/1.208, allocations: 1.26 MB / 0.8459 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.208, allocations: 4.688 kB / 0.8459 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/1.208, allocations: 0 / 0.8459 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/1.208, allocations: 10.95 kB / 0.8459 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/1.211, allocations: 2.083 MB / 0.848 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.211, allocations: 0 / 0.848 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005761/1.212, allocations: 113.3 kB / 0.8481 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007187/1.213, allocations: 374 kB / 0.8484 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/1.213, allocations: 7.234 kB / 0.8485 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/1.215, allocations: 1.255 MB / 0.8497 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/1.215, allocations: 7.688 kB / 0.8497 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002893/1.218, allocations: 1.751 MB / 0.8514 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003567/1.221, allocations: 2.663 MB / 0.854 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/1.221, allocations: 233 kB / 0.8542 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/1.222, allocations: 3.875 kB / 0.8542 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/1.222, allocations: 42.8 kB / 0.8543 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/1.222, allocations: 53.2 kB / 0.8543 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.005e-05/1.222, allocations: 32.7 kB / 0.8543 GB, free: 120.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000328/1.223, allocations: 341.8 kB / 0.8547 GB, free: 120.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002894/1.226, allocations: 0.691 MB / 0.8553 GB, free: 120.7 MB / 442.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.001303/1.227, allocations: 0.5706 MB / 0.8559 GB, free: 120.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002337/1.229, allocations: 1.36 MB / 0.8572 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/1.229, allocations: 3.938 kB / 0.8572 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008/1.23, allocations: 456 kB / 0.8577 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/1.232, allocations: 300.5 kB / 0.858 GB, free: 120.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/1.234, allocations: 1.353 MB / 0.8593 GB, free: 120.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006737/1.235, allocations: 1.111 MB / 0.8604 GB, free: 119.6 MB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/1.235, allocations: 0 / 0.8604 GB, free: 119.6 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)