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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001216, allocations: 90.28 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.412e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1277, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.029/1.157, allocations: 322.3 MB / 0.7074 GB, free: 26.81 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/1.158, allocations: 87.64 kB / 0.7075 GB, free: 26.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6666/1.824, allocations: 134.2 MB / 0.8386 GB, free: 98.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.142e-06/1.824, allocations: 0 / 0.8386 GB, free: 98.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001198/1.824, allocations: 20 kB / 0.8386 GB, free: 98.16 MB / 458.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.004112/1.828, allocations: 1.087 MB / 0.8397 GB, free: 97.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/1.829, allocations: 12.03 kB / 0.8397 GB, free: 97.03 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003682/1.829, allocations: 102 kB / 0.8398 GB, free: 96.92 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007316/1.83, allocations: 98.58 kB / 0.8399 GB, free: 96.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/1.832, allocations: 0.6524 MB / 0.8405 GB, free: 96.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/1.832, allocations: 108 kB / 0.8406 GB, free: 96.03 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/1.832, allocations: 56.59 kB / 0.8406 GB, free: 95.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/1.834, allocations: 0.8779 MB / 0.8415 GB, free: 95.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/1.834, allocations: 0 / 0.8415 GB, free: 95.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/1.834, allocations: 27.2 kB / 0.8415 GB, free: 95.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.844e-05/1.834, allocations: 57.73 kB / 0.8416 GB, free: 95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/1.836, allocations: 0.8132 MB / 0.8424 GB, free: 94.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/1.842, allocations: 3.291 MB / 0.8456 GB, free: 90.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/1.843, allocations: 0.6454 MB / 0.8462 GB, free: 90.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005019/1.844, allocations: 362.4 kB / 0.8466 GB, free: 89.78 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003145/1.847, allocations: 2.047 MB / 0.8486 GB, free: 87.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/1.847, allocations: 49.48 kB / 0.8486 GB, free: 87.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 3.596e-06/1.847, allocations: 0 / 0.8486 GB, free: 87.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.004865/1.852, allocations: 2.217 MB / 0.8508 GB, free: 85.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/1.852, allocations: 81.67 kB / 0.8509 GB, free: 85.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008636/1.853, allocations: 0.5971 MB / 0.8514 GB, free: 84.53 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.694e-05/1.853, allocations: 37.7 kB / 0.8515 GB, free: 84.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/1.853, allocations: 340.5 kB / 0.8518 GB, free: 84.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/1.853, allocations: 228.5 kB / 0.852 GB, free: 83.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/1.853, allocations: 16 kB / 0.852 GB, free: 83.91 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.853, allocations: 382.8 kB / 0.8524 GB, free: 83.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/1.854, allocations: 357.4 kB / 0.8527 GB, free: 83.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/1.855, allocations: 0.489 MB / 0.8532 GB, free: 82.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005756/1.855, allocations: 397.9 kB / 0.8536 GB, free: 82.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/1.855, allocations: 0 / 0.8536 GB, free: 82.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001683/1.857, allocations: 1.128 MB / 0.8547 GB, free: 81.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000384/1.857, allocations: 1.573 MB / 0.8562 GB, free: 79.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/1.857, allocations: 6.188 kB / 0.8562 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/1.858, allocations: 440.4 kB / 0.8567 GB, free: 78.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/1.859, allocations: 155.8 kB / 0.8568 GB, free: 78.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/1.86, allocations: 1.027 MB / 0.8578 GB, free: 77.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/1.861, allocations: 39.89 kB / 0.8579 GB, free: 77.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.115e-05/1.861, allocations: 31.98 kB / 0.8579 GB, free: 77.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/1.861, allocations: 8 kB / 0.8579 GB, free: 77.7 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001482/1.863, allocations: 0.9835 MB / 0.8589 GB, free: 76.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/1.863, allocations: 4 kB / 0.8589 GB, free: 76.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006156/1.863, allocations: 312.7 kB / 0.8592 GB, free: 76.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005955/1.864, allocations: 167.7 kB / 0.8593 GB, free: 76.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007964/1.865, allocations: 0.9035 MB / 0.8602 GB, free: 75.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/1.865, allocations: 47.83 kB / 0.8602 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.454e-05/1.865, allocations: 35.98 kB / 0.8603 GB, free: 75.22 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.0002292/1.866, allocations: 140.9 kB / 0.8604 GB, free: 75.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/1.866, allocations: 79.05 kB / 0.8605 GB, free: 75 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/1.868, allocations: 1.088 MB / 0.8615 GB, free: 73.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.868, allocations: 12 kB / 0.8616 GB, free: 73.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/1.868, allocations: 3.953 kB / 0.8616 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/1.868, allocations: 3.984 kB / 0.8616 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/1.871, allocations: 1.989 MB / 0.8635 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.871, allocations: 0 / 0.8635 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005435/1.871, allocations: 123.8 kB / 0.8636 GB, free: 71.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/1.872, allocations: 441 kB / 0.864 GB, free: 71.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/1.872, allocations: 19.98 kB / 0.8641 GB, free: 71.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009943/1.873, allocations: 1.029 MB / 0.8651 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.873, allocations: 0 / 0.8651 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/1.875, allocations: 1.576 MB / 0.8666 GB, free: 68.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/1.876, allocations: 248.1 kB / 0.8668 GB, free: 68.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/1.876, allocations: 12 kB / 0.8669 GB, free: 68.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007394/1.877, allocations: 55.83 kB / 0.8669 GB, free: 68.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/1.877, allocations: 52.69 kB / 0.867 GB, free: 68.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.237e-05/1.877, allocations: 31.98 kB / 0.867 GB, free: 68.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006932/1.878, allocations: 471.1 kB / 0.8674 GB, free: 67.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.878, allocations: 3.938 kB / 0.8674 GB, free: 67.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002487/1.88, allocations: 0.6478 MB / 0.8681 GB, free: 67.1 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.004232/1.885, allocations: 2.62 MB / 0.8706 GB, free: 64.49 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002725/1.887, allocations: 1.38 MB / 0.872 GB, free: 63.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/1.887, allocations: 0 / 0.872 GB, free: 63.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008537/1.888, allocations: 464.2 kB / 0.8724 GB, free: 62.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/1.89, allocations: 362.3 kB / 0.8728 GB, free: 62.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/1.895, allocations: 1.706 MB / 0.8744 GB, free: 60.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/1.895, allocations: 1.008 MB / 0.8754 GB, free: 59.53 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001419/1.897, allocations: 367.7 kB / 0.8758 GB, free: 59.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/1.897, allocations: 275.3 kB / 0.876 GB, free: 58.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.412e-06/1.897, allocations: 0 / 0.876 GB, free: 58.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06005/1.957, allocations: 30.57 MB / 0.9059 GB, free: 28.55 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/1.957, allocations: 182.2 kB / 0.9061 GB, free: 28.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.416/5.373, allocations: 4.062 kB / 0.9061 GB, free: 28.31 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat