Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002282/0.002281, allocations: 180.7 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 94.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.033e-05/4.043e-05, allocations: 8 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09849/0.09857, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9816/1.08, allocations: 272.6 MB / 0.6267 GB, free: 50.52 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/1.081, allocations: 68.09 kB / 0.6268 GB, free: 50.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0333/1.114, allocations: 9.403 MB / 0.636 GB, free: 42.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.744e-06/1.114, allocations: 0 / 0.636 GB, free: 42.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/1.114, allocations: 4 kB / 0.636 GB, free: 42.77 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001057/1.115, allocations: 458.1 kB / 0.6364 GB, free: 42.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/1.115, allocations: 8.031 kB / 0.6364 GB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.634e-05/1.115, allocations: 52.36 kB / 0.6365 GB, free: 42.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/1.115, allocations: 19.89 kB / 0.6365 GB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/1.116, allocations: 209.4 kB / 0.6367 GB, free: 41.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/1.116, allocations: 11.72 kB / 0.6367 GB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/1.116, allocations: 18.77 kB / 0.6367 GB, free: 41.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/1.116, allocations: 202.6 kB / 0.6369 GB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/1.116, allocations: 0 / 0.6369 GB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/1.116, allocations: 11.5 kB / 0.6369 GB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/1.116, allocations: 4 kB / 0.6369 GB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/1.117, allocations: 127.9 kB / 0.6371 GB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/1.118, allocations: 0.9293 MB / 0.638 GB, free: 40.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/1.119, allocations: 137.2 kB / 0.6381 GB, free: 40.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/1.119, allocations: 44.11 kB / 0.6381 GB, free: 40.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006149/1.119, allocations: 0.5141 MB / 0.6386 GB, free: 40.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/1.119, allocations: 37.88 kB / 0.6387 GB, free: 40.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.926e-06/1.119, allocations: 0 / 0.6387 GB, free: 40.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.002602/1.122, allocations: 0.6364 MB / 0.6393 GB, free: 39.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/1.122, allocations: 55.36 kB / 0.6394 GB, free: 39.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/1.122, allocations: 145.3 kB / 0.6395 GB, free: 39.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/1.122, allocations: 33.64 kB / 0.6395 GB, free: 39.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/1.122, allocations: 205.3 kB / 0.6397 GB, free: 38.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/1.122, allocations: 78.61 kB / 0.6398 GB, free: 38.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/1.122, allocations: 3.875 kB / 0.6398 GB, free: 38.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/1.123, allocations: 330.5 kB / 0.6401 GB, free: 38.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/1.123, allocations: 70.17 kB / 0.6402 GB, free: 38.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/1.123, allocations: 165.5 kB / 0.6403 GB, free: 38.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/1.123, allocations: 91.52 kB / 0.6404 GB, free: 38.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.123, allocations: 4 kB / 0.6404 GB, free: 38.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009851/1.124, allocations: 285.1 kB / 0.6407 GB, free: 38.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/1.124, allocations: 4 kB / 0.6407 GB, free: 38.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/1.124, allocations: 4 kB / 0.6407 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.508e-05/1.124, allocations: 11.98 kB / 0.6407 GB, free: 38.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008434/1.125, allocations: 79.58 kB / 0.6408 GB, free: 37.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/1.125, allocations: 11.92 kB / 0.6408 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004621/1.126, allocations: 28.03 kB / 0.6408 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/1.126, allocations: 15.94 kB / 0.6409 GB, free: 37.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.126, allocations: 120.3 kB / 0.641 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.447e-05/1.126, allocations: 15.81 kB / 0.641 GB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006676/1.127, allocations: 206.7 kB / 0.6412 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/1.127, allocations: 0 / 0.6412 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/1.127, allocations: 7.938 kB / 0.6412 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/1.127, allocations: 3.984 kB / 0.6412 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/1.128, allocations: 0.56 MB / 0.6417 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.128, allocations: 8 kB / 0.6417 GB, free: 36.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000505/1.129, allocations: 52.03 kB / 0.6418 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/1.129, allocations: 3.953 kB / 0.6418 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/1.129, allocations: 11.98 kB / 0.6418 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/1.129, allocations: 4 kB / 0.6418 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/1.129, allocations: 0 / 0.6418 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000638/1.129, allocations: 401.5 kB / 0.6422 GB, free: 36.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/1.13, allocations: 92.92 kB / 0.6423 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/1.13, allocations: 4 kB / 0.6423 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/1.13, allocations: 16.05 kB / 0.6423 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/1.13, allocations: 15.94 kB / 0.6423 GB, free: 36.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.653e-05/1.13, allocations: 15.98 kB / 0.6423 GB, free: 36.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.382e-05/1.13, allocations: 107.3 kB / 0.6424 GB, free: 36.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.13, allocations: 0 / 0.6424 GB, free: 36.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005499/1.131, allocations: 63.94 kB / 0.6425 GB, free: 36.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009889/1.132, allocations: 1.243 MB / 0.6437 GB, free: 34.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004705/1.132, allocations: 187.7 kB / 0.6439 GB, free: 34.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.132, allocations: 0 / 0.6439 GB, free: 34.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/1.132, allocations: 76.06 kB / 0.644 GB, free: 34.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/1.133, allocations: 39.52 kB / 0.644 GB, free: 34.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/1.134, allocations: 377 kB / 0.6444 GB, free: 34.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/1.134, allocations: 0.7243 MB / 0.6451 GB, free: 33.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/1.135, allocations: 55.41 kB / 0.6451 GB, free: 33.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/1.135, allocations: 0 / 0.6451 GB, free: 33.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.588/3.723, allocations: 3.35 MB / 0.6484 GB, free: 29.96 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat does not exist to compare? outputFormat=mat