Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.0009971/0.0009972, allocations: 100.7 kB / 16.94 MB, free: 5.719 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.000919/0.0009191, allocations: 185.8 kB / 17.83 MB, free: 5.34 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.538/1.538, allocations: 205.4 MB / 224 MB, free: 13.02 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.0004565/0.0004565, allocations: 8 kB / 280.8 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08925, allocations: 47.59 MB / 328.4 MB, free: 3.953 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02029/0.1096, allocations: 18.82 MB / 347.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.1241, allocations: 8.816 MB / 356.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.1259, allocations: 35.69 kB / 356.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.1275, allocations: 346.2 kB / 356.4 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00502/0.1326, allocations: 1.157 MB / 357.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005819/0.1385, allocations: 2.046 MB / 359.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002421/0.1409, allocations: 1.417 MB / 361.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008747/0.1418, allocations: 0.5439 MB / 361.6 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.1432, allocations: 0.7751 MB / 362.4 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009633/0.1442, allocations: 0.6307 MB / 363 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.1443, allocations: 47.94 kB / 363 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.1474, allocations: 1.56 MB / 364.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003494/0.1478, allocations: 295.2 kB / 364.9 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.148, allocations: 205.3 kB / 365.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002575/0.1506, allocations: 1.762 MB / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.1506, allocations: 0 / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1506, allocations: 0 / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1507, allocations: 0 / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002629/0.1533, allocations: 1.316 MB / 368.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1534, allocations: 12.03 kB / 368.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.1535, allocations: 114.5 kB / 368.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003578/0.1539, allocations: 114.8 kB / 368.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.155, allocations: 0.6673 MB / 369.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.155, allocations: 49.3 kB / 369.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.1551, allocations: 59.98 kB / 369.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.1567, allocations: 1.044 MB / 370.2 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1567, allocations: 3.938 kB / 370.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.127e-05/0.1568, allocations: 27.98 kB / 370.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.98e-05/0.1569, allocations: 73.27 kB / 370.3 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.1585, allocations: 1.024 MB / 371.4 MB, free: 8.738 MB / 318.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.006571/0.1651, allocations: 4.524 MB / 375.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009222/0.166, allocations: 0.5631 MB / 376.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002592/0.1686, allocations: 2.008 MB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.1687, allocations: 42.83 kB / 378.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.284e-06/0.1687, allocations: 0 / 378.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.1572/0.3259, allocations: 1.953 MB / 380.4 MB, free: 53.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.326, allocations: 164 kB / 380.6 MB, free: 53.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/0.3273, allocations: 0.9189 MB / 381.5 MB, free: 53.53 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.922e-05/0.3274, allocations: 36.86 kB / 381.6 MB, free: 53.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004572/0.3278, allocations: 485.1 kB / 382 MB, free: 53.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.328, allocations: 163.6 kB / 382.2 MB, free: 53.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.3281, allocations: 21.19 kB / 382.2 MB, free: 53.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.3282, allocations: 342.8 kB / 382.6 MB, free: 52.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006515/0.3288, allocations: 314.5 kB / 382.9 MB, free: 52.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006809/0.3295, allocations: 0.6146 MB / 383.5 MB, free: 52.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.3301, allocations: 399.7 kB / 383.9 MB, free: 52.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3301, allocations: 3.156 kB / 383.9 MB, free: 52.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001783/0.3319, allocations: 1.1 MB / 385 MB, free: 51.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006254/0.3325, allocations: 3.481 MB / 388.4 MB, free: 48.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3326, allocations: 8.438 kB / 388.5 MB, free: 48.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/0.3351, allocations: 383 kB / 388.8 MB, free: 48.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007063/0.3359, allocations: 183.3 kB / 389 MB, free: 48.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.3369, allocations: 1.337 MB / 390.3 MB, free: 46.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008932/0.3378, allocations: 56.94 kB / 390.4 MB, free: 46.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-05/0.3379, allocations: 49.62 kB / 390.4 MB, free: 46.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.3379, allocations: 3.812 kB / 390.5 MB, free: 46.94 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001701/0.3396, allocations: 0.9685 MB / 391.4 MB, free: 46.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3397, allocations: 11.83 kB / 391.4 MB, free: 46.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/0.3419, allocations: 357.7 kB / 391.8 MB, free: 46.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/0.3426, allocations: 183.1 kB / 392 MB, free: 46.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008494/0.3434, allocations: 1.311 MB / 393.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/0.3442, allocations: 52.78 kB / 393.3 MB, free: 45.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-05/0.3443, allocations: 43.59 kB / 393.4 MB, free: 45.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],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 (104): * Single equations (assignments): 102 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000552/0.3448, allocations: 371.4 kB / 393.7 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.345, allocations: 92.97 kB / 393.8 MB, free: 44.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.3467, allocations: 0.7921 MB / 394.6 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.3467, allocations: 5.719 kB / 394.6 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3467, allocations: 2.688 kB / 394.6 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.3468, allocations: 7.625 kB / 394.6 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.3497, allocations: 1.599 MB / 396.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3497, allocations: 0 / 396.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.3501, allocations: 78.78 kB / 396.3 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/0.3516, allocations: 305.9 kB / 396.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.3516, allocations: 9.188 kB / 396.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007703/0.3524, allocations: 1.309 MB / 397.9 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3524, allocations: 3.359 kB / 397.9 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3539, allocations: 1.101 MB / 399 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.3542, allocations: 198.1 kB / 399.2 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3544, allocations: 12.12 kB / 399.2 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.3549, allocations: 45.03 kB / 399.3 MB, free: 41.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.355, allocations: 45.95 kB / 399.3 MB, free: 41.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.355, allocations: 22.83 kB / 399.3 MB, free: 41.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008446/0.3559, allocations: 0.6426 MB / 400 MB, free: 41.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3559, allocations: 0 / 400 MB, free: 41.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002054/0.358, allocations: 0.7482 MB / 400.7 MB, free: 41.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002657/0.3606, allocations: 2.296 MB / 403 MB, free: 40.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.3626, allocations: 1.224 MB / 404.3 MB, free: 39.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3627, allocations: 0.7656 kB / 404.3 MB, free: 39.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.3631, allocations: 311.7 kB / 404.6 MB, free: 39.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.3647, allocations: 379.2 kB / 404.9 MB, free: 39.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.3686, allocations: 8.835 MB / 413.8 MB, free: 30.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.369, allocations: 1.053 MB / 414.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.37, allocations: 372.5 kB / 415.2 MB, free: 29.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/0.3704, allocations: 331.3 kB / 415.5 MB, free: 29.16 MB / 318.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3704, allocations: 0 / 415.5 MB, free: 29.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04762/0.418, allocations: 32.03 MB / 447.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.4183, allocations: 267.2 kB / 447.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.165, allocations: 0 / 447.8 MB, free: 12.71 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat