Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 94.53 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 181 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004584, allocations: 16 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/0.09666, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01472/0.1114, allocations: 15.28 MB / 343.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1215, allocations: 5.461 MB / 349.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.1226, allocations: 31.75 kB / 349.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009437/0.1235, allocations: 290.4 kB / 349.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.1261, allocations: 0.8451 MB / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003582/0.1297, allocations: 1.255 MB / 351.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002013/0.1317, allocations: 1.078 MB / 352.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006258/0.1324, allocations: 409.4 kB / 353.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009432/0.1333, allocations: 0.5491 MB / 353.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006484/0.134, allocations: 458.4 kB / 354.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.178e-05/0.1341, allocations: 40 kB / 354.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002139/0.1362, allocations: 1.014 MB / 355.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003125/0.1366, allocations: 203.4 kB / 355.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.1368, allocations: 165.3 kB / 355.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001819/0.1386, allocations: 1.2 MB / 356.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1386, allocations: 0 / 356.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1386, allocations: 0 / 356.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.1386, allocations: 0 / 356.7 MB, free: 7.652 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002273/0.1409, allocations: 1.051 MB / 357.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.141, allocations: 8.031 kB / 357.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.1412, allocations: 94.5 kB / 357.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004412/0.1416, allocations: 83.14 kB / 357.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.1427, allocations: 0.5209 MB / 358.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.368e-05/0.1427, allocations: 40.98 kB / 358.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.1428, allocations: 47.98 kB / 358.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.1442, allocations: 0.7333 MB / 359.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.1442, allocations: 4 kB / 359.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.295e-05/0.1443, allocations: 16 kB / 359.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.607e-05/0.1444, allocations: 48.97 kB / 359.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.1455, allocations: 0.6908 MB / 360 MB, free: 4.191 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004809/0.1504, allocations: 3.054 MB / 363.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008132/0.1512, allocations: 492.4 kB / 363.5 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003645/0.1516, allocations: 345.3 kB / 363.9 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.557e-05/0.1517, allocations: 39 kB / 363.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 3.297e-06/0.1517, allocations: 4 kB / 363.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.006018/0.1577, allocations: 2.312 MB / 366.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.632e-05/0.1578, allocations: 93.59 kB / 366.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009111/0.1587, allocations: 0.6094 MB / 366.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.959e-05/0.1588, allocations: 45.7 kB / 367 MB, free: 12.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.1591, allocations: 328.4 kB / 367.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.1594, allocations: 205.1 kB / 367.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.1594, allocations: 20 kB / 367.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.1596, allocations: 378.8 kB / 367.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.1601, allocations: 297.8 kB / 368.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000815/0.161, allocations: 465.9 kB / 368.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/0.1616, allocations: 359 kB / 369 MB, free: 10.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1616, allocations: 0 / 369 MB, free: 10.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001679/0.1633, allocations: 0.962 MB / 369.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001305/0.1646, allocations: 1.824 MB / 371.8 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.1647, allocations: 4 kB / 371.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002641/0.1673, allocations: 428.2 kB / 372.2 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006867/0.168, allocations: 151.8 kB / 372.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.169, allocations: 0.8138 MB / 373.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006922/0.1697, allocations: 51.94 kB / 373.2 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.1698, allocations: 35.98 kB / 373.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1698, allocations: 4 kB / 373.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/0.1713, allocations: 0.8123 MB / 374 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1713, allocations: 4 kB / 374.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002019/0.1733, allocations: 293 kB / 374.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.174, allocations: 159.7 kB / 374.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008474/0.1748, allocations: 0.7085 MB / 375.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006731/0.1755, allocations: 55.88 kB / 375.3 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/0.1756, allocations: 28 kB / 375.3 MB, free: 4.191 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005641/0.1762, allocations: 320.9 kB / 375.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.1763, allocations: 75.11 kB / 375.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.1783, allocations: 0.862 MB / 376.5 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.1783, allocations: 12 kB / 376.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1783, allocations: 0 / 376.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.1783, allocations: 3.984 kB / 376.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.1815, allocations: 1.727 MB / 378.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.1816, allocations: 3.938 kB / 378.3 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005431/0.1821, allocations: 111.9 kB / 378.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.1838, allocations: 348.6 kB / 378.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.203e-05/0.1838, allocations: 15.98 kB / 378.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1885/0.3724, allocations: 0.8131 MB / 379.6 MB, free: 53.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.3724, allocations: 2.359 kB / 379.6 MB, free: 53.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.3748, allocations: 1.302 MB / 380.9 MB, free: 53.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.3751, allocations: 151.8 kB / 381 MB, free: 53.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.3753, allocations: 16.55 kB / 381 MB, free: 53.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006012/0.3759, allocations: 45.55 kB / 381.1 MB, free: 53.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3761, allocations: 51.11 kB / 381.1 MB, free: 53.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/0.3762, allocations: 29.88 kB / 381.2 MB, free: 53.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000938/0.3771, allocations: 437.6 kB / 381.6 MB, free: 52.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3771, allocations: 0 / 381.6 MB, free: 52.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002137/0.3793, allocations: 0.528 MB / 382.1 MB, free: 52.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003975/0.3832, allocations: 2.315 MB / 384.4 MB, free: 52.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.3859, allocations: 1.162 MB / 385.6 MB, free: 51.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.3859, allocations: 1.969 kB / 385.6 MB, free: 51.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.3867, allocations: 390.3 kB / 386 MB, free: 51.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/0.3887, allocations: 334.4 kB / 386.3 MB, free: 51.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006091/0.3948, allocations: 5.533 MB / 391.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006609/0.3955, allocations: 0.9825 MB / 392.8 MB, free: 46.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001258/0.3967, allocations: 295.7 kB / 393.1 MB, free: 46.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.3972, allocations: 253.2 kB / 393.3 MB, free: 46.16 MB / 318.1 MB Notification: Performance of SimCode: time 1.874e-06/0.3972, allocations: 3.938 kB / 393.3 MB, free: 46.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03949/0.4367, allocations: 25.46 MB / 418.8 MB, free: 25.9 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001217/0.4368, allocations: 207.6 kB / 419 MB, free: 25.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.292/2.729, allocations: 4.062 kB / 419 MB, free: 25.66 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat