Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001197/0.001197, allocations: 201.3 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000963/0.0009629, allocations: 91.36 kB / 286.3 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1019/0.1029, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.1892, allocations: 51.47 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5299/0.7192, allocations: 321.5 MB / 0.6995 GB, free: 32.23 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001663/0.7194, allocations: 81.02 kB / 0.6995 GB, free: 32.2 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.4042/1.124, allocations: 135 MB / 0.8314 GB, free: 102.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/1.124, allocations: 12.64 kB / 0.8314 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003169/1.124, allocations: 94.88 kB / 0.8315 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/1.125, allocations: 0.659 MB / 0.8321 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.924e-05/1.125, allocations: 87.59 kB / 0.8322 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.94e-05/1.125, allocations: 31.34 kB / 0.8322 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001043/1.126, allocations: 0.7689 MB / 0.833 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/1.127, allocations: 0.8284 MB / 0.8338 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/1.127, allocations: 0 / 0.8338 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/1.127, allocations: 3.906 kB / 0.8338 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.754e-05/1.127, allocations: 59.31 kB / 0.8338 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004369/1.132, allocations: 3.174 MB / 0.8369 GB, free: 98.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/1.132, allocations: 0.5124 MB / 0.8374 GB, free: 98.53 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003966/1.133, allocations: 355.1 kB / 0.8378 GB, free: 98.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002209/1.135, allocations: 2.016 MB / 0.8397 GB, free: 96.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/1.135, allocations: 47.08 kB / 0.8398 GB, free: 96.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 1.583e-06/1.135, allocations: 0 / 0.8398 GB, free: 96.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.006851/1.142, allocations: 2.556 MB / 0.8423 GB, free: 94.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/1.142, allocations: 89.7 kB / 0.8424 GB, free: 94.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/1.143, allocations: 450.1 kB / 0.8428 GB, free: 93.67 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/1.143, allocations: 25.7 kB / 0.8428 GB, free: 93.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/1.143, allocations: 272 kB / 0.8431 GB, free: 93.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/1.143, allocations: 224.7 kB / 0.8433 GB, free: 93.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/1.143, allocations: 0 / 0.8433 GB, free: 93.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/1.143, allocations: 382.6 kB / 0.8437 GB, free: 92.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004399/1.143, allocations: 349.4 kB / 0.844 GB, free: 92.42 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/1.144, allocations: 491.1 kB / 0.8445 GB, free: 91.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/1.146, allocations: 0.7758 MB / 0.8452 GB, free: 91.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/1.146, allocations: 0 / 0.8452 GB, free: 91.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003475/1.15, allocations: 1.46 MB / 0.8466 GB, free: 89.63 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002193/1.15, allocations: 1.569 MB / 0.8482 GB, free: 87.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/1.15, allocations: 7.938 kB / 0.8482 GB, free: 87.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007652/1.151, allocations: 372.1 kB / 0.8485 GB, free: 87.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/1.151, allocations: 155.8 kB / 0.8487 GB, free: 87.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/1.153, allocations: 1.261 MB / 0.8499 GB, free: 86.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006496/1.154, allocations: 19.98 kB / 0.8499 GB, free: 86.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.96e-05/1.154, allocations: 35.98 kB / 0.85 GB, free: 86.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/1.154, allocations: 4 kB / 0.85 GB, free: 86.07 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003206/1.157, allocations: 1.291 MB / 0.8512 GB, free: 84.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.157, allocations: 4 kB / 0.8512 GB, free: 84.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006432/1.158, allocations: 316.7 kB / 0.8515 GB, free: 84.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007038/1.159, allocations: 163.8 kB / 0.8517 GB, free: 84.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/1.16, allocations: 1.099 MB / 0.8528 GB, free: 83.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000625/1.161, allocations: 35.81 kB / 0.8528 GB, free: 83.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.46e-05/1.161, allocations: 35.98 kB / 0.8528 GB, free: 83.11 MB / 458.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.0001996/1.161, allocations: 120.9 kB / 0.853 GB, free: 82.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/1.161, allocations: 71.16 kB / 0.853 GB, free: 82.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002823/1.164, allocations: 1.255 MB / 0.8542 GB, free: 81.65 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/1.164, allocations: 8 kB / 0.8543 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/1.164, allocations: 4 kB / 0.8543 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.164, allocations: 3.984 kB / 0.8543 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/1.168, allocations: 2.084 MB / 0.8563 GB, free: 79.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.168, allocations: 0 / 0.8563 GB, free: 79.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/1.169, allocations: 115.9 kB / 0.8564 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007435/1.169, allocations: 368.7 kB / 0.8568 GB, free: 79.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.539e-05/1.169, allocations: 11.98 kB / 0.8568 GB, free: 79.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/1.171, allocations: 1.269 MB / 0.858 GB, free: 77.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.171, allocations: 0 / 0.858 GB, free: 77.74 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002924/1.174, allocations: 1.751 MB / 0.8597 GB, free: 75.97 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003479/1.178, allocations: 2.665 MB / 0.8623 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/1.178, allocations: 240.1 kB / 0.8626 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/1.178, allocations: 4 kB / 0.8626 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/1.179, allocations: 36.02 kB / 0.8626 GB, free: 72.99 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/1.179, allocations: 52.56 kB / 0.8626 GB, free: 72.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.395e-05/1.179, allocations: 27.98 kB / 0.8627 GB, free: 72.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003663/1.179, allocations: 342.9 kB / 0.863 GB, free: 72.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003091/1.182, allocations: 0.7063 MB / 0.8637 GB, free: 71.88 MB / 458.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.001134/1.184, allocations: 0.5995 MB / 0.8643 GB, free: 71.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002304/1.186, allocations: 1.356 MB / 0.8656 GB, free: 69.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.186, allocations: 4 kB / 0.8656 GB, free: 69.94 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007709/1.187, allocations: 446.8 kB / 0.866 GB, free: 69.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/1.188, allocations: 300.9 kB / 0.8663 GB, free: 69.22 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/1.191, allocations: 1.364 MB / 0.8676 GB, free: 67.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005725/1.191, allocations: 1.1 MB / 0.8687 GB, free: 66.7 MB / 458.7 MB Notification: Performance of SimCode: time 5.21e-07/1.191, allocations: 4 kB / 0.8687 GB, free: 66.7 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)