Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_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/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009242/0.0009242, allocations: 94.95 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.71e-05, allocations: 4.219 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1511, allocations: 51.48 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9549/1.106, allocations: 322.4 MB / 0.7008 GB, free: 34.44 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/1.106, allocations: 88.44 kB / 0.7009 GB, free: 34.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5816/1.688, allocations: 139.3 MB / 0.837 GB, free: 73.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.524e-06/1.688, allocations: 0 / 0.837 GB, free: 73.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.251e-05/1.688, allocations: 16 kB / 0.837 GB, free: 73.51 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002758/1.691, allocations: 1.039 MB / 0.838 GB, free: 72.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.252e-05/1.691, allocations: 12.03 kB / 0.838 GB, free: 72.42 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/1.691, allocations: 86.67 kB / 0.8381 GB, free: 72.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/1.692, allocations: 0.5891 MB / 0.8387 GB, free: 71.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/1.693, allocations: 16 kB / 0.8387 GB, free: 71.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.331e-05/1.693, allocations: 28 kB / 0.8387 GB, free: 71.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009225/1.694, allocations: 0.6039 MB / 0.8393 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009261/1.694, allocations: 0.662 MB / 0.8399 GB, free: 70.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/1.695, allocations: 7.938 kB / 0.84 GB, free: 70.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/1.695, allocations: 0 / 0.84 GB, free: 70.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.888e-05/1.695, allocations: 45.23 kB / 0.84 GB, free: 70.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/1.699, allocations: 2.738 MB / 0.8427 GB, free: 67.44 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005849/1.699, allocations: 443.6 kB / 0.8431 GB, free: 67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/1.699, allocations: 246 kB / 0.8433 GB, free: 66.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/1.7, allocations: 340.8 kB / 0.8437 GB, free: 66.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/1.7, allocations: 39 kB / 0.8437 GB, free: 66.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 3.156e-06/1.7, allocations: 0 / 0.8437 GB, free: 66.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.00516/1.705, allocations: 1.822 MB / 0.8455 GB, free: 64.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/1.705, allocations: 81.67 kB / 0.8455 GB, free: 64.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005496/1.706, allocations: 450.1 kB / 0.846 GB, free: 63.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/1.706, allocations: 25.7 kB / 0.846 GB, free: 63.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/1.706, allocations: 336.2 kB / 0.8463 GB, free: 63.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/1.706, allocations: 197.1 kB / 0.8465 GB, free: 63.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/1.706, allocations: 0 / 0.8465 GB, free: 63.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/1.706, allocations: 374.8 kB / 0.8469 GB, free: 62.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/1.707, allocations: 265.5 kB / 0.8471 GB, free: 62.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004818/1.707, allocations: 429.5 kB / 0.8475 GB, free: 62.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/1.709, allocations: 0.5703 MB / 0.8481 GB, free: 61.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/1.709, allocations: 4 kB / 0.8481 GB, free: 61.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00288/1.712, allocations: 1.101 MB / 0.8492 GB, free: 60.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005482/1.712, allocations: 1.746 MB / 0.8509 GB, free: 58.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/1.712, allocations: 4 kB / 0.8509 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005393/1.713, allocations: 172.7 kB / 0.851 GB, free: 58.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/1.714, allocations: 147.8 kB / 0.8512 GB, free: 58.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/1.715, allocations: 0.9464 MB / 0.8521 GB, free: 57.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/1.716, allocations: 32 kB / 0.8521 GB, free: 57.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-05/1.716, allocations: 39.98 kB / 0.8522 GB, free: 57.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/1.716, allocations: 7.953 kB / 0.8522 GB, free: 57.28 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002388/1.718, allocations: 0.9325 MB / 0.8531 GB, free: 56.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/1.718, allocations: 7.938 kB / 0.8531 GB, free: 56.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000362/1.719, allocations: 112.8 kB / 0.8532 GB, free: 56.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/1.719, allocations: 156.2 kB / 0.8534 GB, free: 56.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/1.72, allocations: 0.8014 MB / 0.8541 GB, free: 55.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/1.721, allocations: 28.05 kB / 0.8542 GB, free: 55.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/1.721, allocations: 35.98 kB / 0.8542 GB, free: 55.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 () * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002456/1.721, allocations: 130.1 kB / 0.8543 GB, free: 55.05 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001751/1.723, allocations: 0.7372 MB / 0.855 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/1.723, allocations: 67.16 kB / 0.8551 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/1.725, allocations: 0.8043 MB / 0.8559 GB, free: 53.42 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/1.725, allocations: 4 kB / 0.8559 GB, free: 53.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.725, allocations: 3.953 kB / 0.8559 GB, free: 53.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/1.725, allocations: 11.98 kB / 0.8559 GB, free: 53.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/1.728, allocations: 1.567 MB / 0.8574 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/1.728, allocations: 4 kB / 0.8574 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005008/1.728, allocations: 107.9 kB / 0.8575 GB, free: 51.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004702/1.729, allocations: 164.8 kB / 0.8577 GB, free: 51.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/1.729, allocations: 11.98 kB / 0.8577 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/1.73, allocations: 0.8692 MB / 0.8586 GB, free: 50.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/1.73, allocations: 4.062 kB / 0.8586 GB, free: 50.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/1.732, allocations: 1.248 MB / 0.8598 GB, free: 49.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/1.732, allocations: 148.3 kB / 0.8599 GB, free: 49.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/1.732, allocations: 11.98 kB / 0.8599 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/1.733, allocations: 31.89 kB / 0.86 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/1.733, allocations: 52.47 kB / 0.86 GB, free: 49.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/1.733, allocations: 27.98 kB / 0.86 GB, free: 49.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005066/1.734, allocations: 338.9 kB / 0.8604 GB, free: 48.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.734, allocations: 0 / 0.8604 GB, free: 48.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002313/1.736, allocations: 0.5502 MB / 0.8609 GB, free: 48.17 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * 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.004006/1.74, allocations: 2.417 MB / 0.8633 GB, free: 45.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/1.742, allocations: 1.071 MB / 0.8643 GB, free: 44.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.742, allocations: 4 kB / 0.8643 GB, free: 44.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/1.742, allocations: 347.5 kB / 0.8646 GB, free: 44.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/1.744, allocations: 300.1 kB / 0.8649 GB, free: 44.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/1.747, allocations: 1.445 MB / 0.8663 GB, free: 42.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/1.747, allocations: 0.9873 MB / 0.8673 GB, free: 41.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001031/1.748, allocations: 294.4 kB / 0.8676 GB, free: 41.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/1.749, allocations: 251.3 kB / 0.8678 GB, free: 41.01 MB / 442.7 MB Notification: Performance of SimCode: time 1.543e-06/1.749, allocations: 0 / 0.8678 GB, free: 41.01 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05332/1.802, allocations: 24.67 MB / 0.8919 GB, free: 16.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/1.802, allocations: 136.2 kB / 0.8921 GB, free: 16.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.905/4.707, allocations: 0 / 0.8921 GB, free: 16.31 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat