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.002049/0.002048, allocations: 186.7 kB / 16.41 MB, free: 5.727 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.077/2.077, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001152/0.001152, allocations: 91.22 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005629/0.0005629, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3407, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6546/0.9954, allocations: 272.7 MB / 0.6322 GB, free: 276 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.9957, allocations: 72.28 kB / 0.6322 GB, free: 236 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03711/1.033, allocations: 9.431 MB / 0.6414 GB, free: 8.484 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.033, allocations: 0 / 0.6414 GB, free: 8.484 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/1.033, allocations: 4 kB / 0.6414 GB, free: 8.48 MB / 426.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.001223/1.034, allocations: 466 kB / 0.6419 GB, free: 7.988 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.034, allocations: 8.031 kB / 0.6419 GB, free: 7.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.093e-05/1.034, allocations: 53.8 kB / 0.6419 GB, free: 7.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/1.035, allocations: 27.48 kB / 0.642 GB, free: 7.902 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/1.035, allocations: 201.7 kB / 0.6422 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/1.035, allocations: 15.72 kB / 0.6422 GB, free: 7.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/1.035, allocations: 15.7 kB / 0.6422 GB, free: 7.648 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000619/1.036, allocations: 215.1 kB / 0.6424 GB, free: 7.461 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/1.036, allocations: 0 / 0.6424 GB, free: 7.461 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/1.036, allocations: 7.562 kB / 0.6424 GB, free: 7.457 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/1.036, allocations: 7.938 kB / 0.6424 GB, free: 7.449 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005828/1.036, allocations: 143.7 kB / 0.6425 GB, free: 7.344 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/1.038, allocations: 0.9346 MB / 0.6435 GB, free: 6.418 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/1.039, allocations: 150.3 kB / 0.6436 GB, free: 6.297 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000763/1.04, allocations: 0.5034 MB / 0.6441 GB, free: 5.754 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/1.04, allocations: 34.56 kB / 0.6441 GB, free: 5.711 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 2.806e-06/1.04, allocations: 0 / 0.6441 GB, free: 5.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.004299/1.044, allocations: 0.7575 MB / 0.6449 GB, free: 5.035 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/1.044, allocations: 59.36 kB / 0.6449 GB, free: 4.965 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/1.044, allocations: 149.2 kB / 0.6451 GB, free: 4.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/1.044, allocations: 29.33 kB / 0.6451 GB, free: 4.789 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/1.045, allocations: 206 kB / 0.6453 GB, free: 4.594 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.085e-05/1.045, allocations: 77.86 kB / 0.6454 GB, free: 4.527 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/1.045, allocations: 7.875 kB / 0.6454 GB, free: 4.523 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/1.045, allocations: 318.8 kB / 0.6457 GB, free: 4.207 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/1.045, allocations: 92.56 kB / 0.6458 GB, free: 4.141 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000515/1.046, allocations: 188.3 kB / 0.6459 GB, free: 3.938 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/1.046, allocations: 112.8 kB / 0.6461 GB, free: 3.863 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/1.046, allocations: 0 / 0.6461 GB, free: 3.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001181/1.048, allocations: 317.4 kB / 0.6464 GB, free: 3.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/1.048, allocations: 4 kB / 0.6464 GB, free: 3.609 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/1.048, allocations: 4 kB / 0.6464 GB, free: 3.605 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/1.048, allocations: 8 kB / 0.6464 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006863/1.048, allocations: 84.11 kB / 0.6465 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/1.048, allocations: 11.98 kB / 0.6465 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/1.049, allocations: 19.2 kB / 0.6465 GB, free: 3.492 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.465e-05/1.049, allocations: 19.3 kB / 0.6465 GB, free: 3.477 MB / 426.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 () * Number of clocked 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.0001911/1.049, allocations: 128.6 kB / 0.6466 GB, free: 3.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/1.049, allocations: 11.91 kB / 0.6466 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/1.05, allocations: 243.4 kB / 0.6469 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/1.05, allocations: 0 / 0.6469 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.05, allocations: 0 / 0.6469 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.05, allocations: 0 / 0.6469 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/1.053, allocations: 0.6006 MB / 0.6475 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/1.053, allocations: 3.938 kB / 0.6475 GB, free: 2.562 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/1.053, allocations: 55.53 kB / 0.6475 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/1.053, allocations: 4 kB / 0.6475 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/1.053, allocations: 11.94 kB / 0.6475 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.053, allocations: 0 / 0.6475 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.053, allocations: 4 kB / 0.6475 GB, free: 2.492 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/1.055, allocations: 450.7 kB / 0.648 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/1.055, allocations: 92.59 kB / 0.648 GB, free: 1.965 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/1.055, allocations: 4 kB / 0.648 GB, free: 1.961 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/1.056, allocations: 15.48 kB / 0.6481 GB, free: 1.949 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/1.056, allocations: 23.06 kB / 0.6481 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/1.056, allocations: 11.98 kB / 0.6481 GB, free: 1.918 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001364/1.056, allocations: 114.3 kB / 0.6482 GB, free: 1.816 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.5e-07/1.056, allocations: 0 / 0.6482 GB, free: 1.816 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005801/1.057, allocations: 70.42 kB / 0.6483 GB, free: 1.754 MB / 426.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 () * Number of clocked 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.002188/1.059, allocations: 1.285 MB / 0.6495 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/1.06, allocations: 213.4 kB / 0.6497 GB, free: 336 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.06, allocations: 256 / 0.6497 GB, free: 336 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004218/1.06, allocations: 94.25 kB / 0.6498 GB, free: 260 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/1.061, allocations: 30.84 kB / 0.6499 GB, free: 236 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2677/1.329, allocations: 3.528 MB / 0.6533 GB, free: 158.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/1.329, allocations: 0.7215 MB / 0.654 GB, free: 157.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/1.329, allocations: 50.81 kB / 0.6541 GB, free: 157.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.182e-06/1.329, allocations: 0 / 0.6541 GB, free: 157.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.473/3.802, allocations: 3.331 MB / 0.6573 GB, free: 157.7 MB / 426.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