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.002248/0.002253, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.457/2.457, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 95.98 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.748e-05, allocations: 0 / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3394, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6835/1.023, allocations: 272 MB / 0.6195 GB, free: 10.37 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/1.023, allocations: 66.41 kB / 0.6196 GB, free: 10.34 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03476/1.058, allocations: 9.345 MB / 0.6287 GB, free: 2.855 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.396e-06/1.058, allocations: 3.984 kB / 0.6287 GB, free: 2.852 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/1.058, allocations: 4 kB / 0.6287 GB, free: 2.848 MB / 395.1 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.00115/1.059, allocations: 460.3 kB / 0.6291 GB, free: 2.367 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/1.059, allocations: 8.031 kB / 0.6291 GB, free: 2.359 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/1.06, allocations: 15.91 kB / 0.6292 GB, free: 2.344 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/1.06, allocations: 213.8 kB / 0.6294 GB, free: 2.102 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/1.06, allocations: 4 kB / 0.6294 GB, free: 2.098 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/1.06, allocations: 9.594 kB / 0.6294 GB, free: 2.09 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003437/1.061, allocations: 112.2 kB / 0.6295 GB, free: 2.012 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/1.061, allocations: 182 kB / 0.6297 GB, free: 1.844 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/1.061, allocations: 4 kB / 0.6297 GB, free: 1.84 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/1.061, allocations: 4 kB / 0.6297 GB, free: 1.836 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/1.061, allocations: 4 kB / 0.6297 GB, free: 1.832 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/1.063, allocations: 0.8978 MB / 0.6305 GB, free: 0.9531 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/1.063, allocations: 118.8 kB / 0.6307 GB, free: 0.8594 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-05/1.063, allocations: 51.56 kB / 0.6307 GB, free: 0.8164 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006556/1.064, allocations: 0.5057 MB / 0.6312 GB, free: 276 kB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/1.064, allocations: 38.55 kB / 0.6312 GB, free: 228 kB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 2.435e-06/1.064, allocations: 0 / 0.6312 GB, free: 228 kB / 395.1 MB Notification: Performance of matching and sorting (n=20): time 0.002956/1.067, allocations: 0.5902 MB / 0.6318 GB, free: 15.66 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/1.067, allocations: 62.66 kB / 0.6319 GB, free: 15.59 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/1.067, allocations: 128.7 kB / 0.632 GB, free: 15.46 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/1.067, allocations: 25.7 kB / 0.632 GB, free: 15.43 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/1.067, allocations: 213.4 kB / 0.6322 GB, free: 15.23 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/1.067, allocations: 70.08 kB / 0.6323 GB, free: 15.17 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/1.067, allocations: 0 / 0.6323 GB, free: 15.17 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/1.068, allocations: 322.1 kB / 0.6326 GB, free: 14.85 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/1.068, allocations: 65.73 kB / 0.6327 GB, free: 14.81 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/1.068, allocations: 172.5 kB / 0.6328 GB, free: 14.62 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/1.068, allocations: 80.72 kB / 0.6329 GB, free: 14.57 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/1.068, allocations: 0 / 0.6329 GB, free: 14.57 MB / 411.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006977/1.069, allocations: 245.7 kB / 0.6331 GB, free: 14.36 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/1.069, allocations: 8 kB / 0.6331 GB, free: 14.36 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/1.069, allocations: 4 kB / 0.6332 GB, free: 14.35 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/1.069, allocations: 4 kB / 0.6332 GB, free: 14.35 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006958/1.07, allocations: 79.8 kB / 0.6332 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/1.07, allocations: 15.94 kB / 0.6332 GB, free: 14.26 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/1.07, allocations: 12.86 kB / 0.6333 GB, free: 14.25 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/1.07, allocations: 19.8 kB / 0.6333 GB, free: 14.23 MB / 411.1 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.0001458/1.071, allocations: 108.9 kB / 0.6334 GB, free: 14.12 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005183/1.071, allocations: 159.8 kB / 0.6335 GB, free: 13.99 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/1.071, allocations: 15.81 kB / 0.6335 GB, free: 13.97 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006399/1.072, allocations: 190.4 kB / 0.6337 GB, free: 13.82 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/1.072, allocations: 7.984 kB / 0.6337 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.072, allocations: 0 / 0.6337 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/1.072, allocations: 3.984 kB / 0.6337 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/1.074, allocations: 0.5256 MB / 0.6343 GB, free: 13.29 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/1.074, allocations: 0 / 0.6343 GB, free: 13.29 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005313/1.074, allocations: 54.89 kB / 0.6343 GB, free: 13.24 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/1.074, allocations: 4 kB / 0.6343 GB, free: 13.24 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/1.074, allocations: 4 kB / 0.6343 GB, free: 13.23 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/1.074, allocations: 0 / 0.6343 GB, free: 13.23 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/1.074, allocations: 11.89 kB / 0.6343 GB, free: 13.22 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008019/1.075, allocations: 381.6 kB / 0.6347 GB, free: 12.86 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/1.075, allocations: 89 kB / 0.6348 GB, free: 12.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/1.075, allocations: 4.062 kB / 0.6348 GB, free: 12.75 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004082/1.076, allocations: 11.98 kB / 0.6348 GB, free: 12.73 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/1.076, allocations: 18.86 kB / 0.6348 GB, free: 12.72 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-05/1.076, allocations: 5.438 kB / 0.6348 GB, free: 12.71 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001154/1.076, allocations: 104.7 kB / 0.6349 GB, free: 12.62 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.076, allocations: 0 / 0.6349 GB, free: 12.62 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0006344/1.077, allocations: 63.73 kB / 0.635 GB, free: 12.56 MB / 411.1 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.001437/1.078, allocations: 1.233 MB / 0.6362 GB, free: 11.34 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005378/1.079, allocations: 173.7 kB / 0.6363 GB, free: 11.21 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.079, allocations: 0 / 0.6363 GB, free: 11.21 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001733/1.079, allocations: 71.03 kB / 0.6364 GB, free: 11.16 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/1.079, allocations: 32.41 kB / 0.6364 GB, free: 11.14 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/1.081, allocations: 358.5 kB / 0.6368 GB, free: 10.76 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/1.081, allocations: 0.7221 MB / 0.6375 GB, free: 10.02 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/1.081, allocations: 52.91 kB / 0.6375 GB, free: 9.988 MB / 411.1 MB Notification: Performance of SimCode: time 9.22e-07/1.081, allocations: 3.938 kB / 0.6375 GB, free: 9.984 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.641/3.723, allocations: 3.338 MB / 0.6408 GB, free: 6.688 MB / 411.1 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