Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.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.Tests.MediaTestModels.Incompressible.Glycol47,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Incompressible_Glycol47",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Incompressible_Glycol47",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.001457/0.001463, allocations: 177.8 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.045/2.045, 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.001115/0.001115, allocations: 93.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.447e-05/2.445e-05, allocations: 7.984 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3523, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5582/0.9106, allocations: 187.9 MB / 0.5375 GB, free: 87.91 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/0.911, allocations: 96.92 kB / 0.5376 GB, free: 87.89 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9663/1.877, allocations: 198.7 MB / 0.7316 GB, free: 77.11 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.084e-06/1.877, allocations: 0 / 0.7316 GB, free: 77.11 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.255e-05/1.877, allocations: 8.375 kB / 0.7316 GB, free: 77.11 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002451/1.88, allocations: 1 MB / 0.7326 GB, free: 76.06 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/1.88, allocations: 12.03 kB / 0.7326 GB, free: 76.05 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004881/1.88, allocations: 47.61 kB / 0.7327 GB, free: 76 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/1.881, allocations: 296.4 kB / 0.733 GB, free: 75.68 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/1.881, allocations: 12 kB / 0.733 GB, free: 75.66 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/1.881, allocations: 20 kB / 0.733 GB, free: 75.64 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004148/1.881, allocations: 153.1 kB / 0.7331 GB, free: 75.5 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/1.882, allocations: 285.2 kB / 0.7334 GB, free: 75.18 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/1.882, allocations: 7.938 kB / 0.7334 GB, free: 75.17 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/1.882, allocations: 3.984 kB / 0.7334 GB, free: 75.17 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/1.882, allocations: 11.98 kB / 0.7334 GB, free: 75.16 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/1.884, allocations: 2.003 MB / 0.7354 GB, free: 72.96 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/1.885, allocations: 166.5 kB / 0.7355 GB, free: 72.79 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/1.885, allocations: 68.86 kB / 0.7356 GB, free: 72.72 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002046/1.885, allocations: 259 kB / 0.7359 GB, free: 72.42 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/1.885, allocations: 42.56 kB / 0.7359 GB, free: 72.37 MB / 411.1 MB Notification: Performance of pre-optimization done (n=24): time 3.607e-06/1.885, allocations: 0 / 0.7359 GB, free: 72.37 MB / 411.1 MB Notification: Performance of matching and sorting (n=30): time 0.003232/1.888, allocations: 0.8043 MB / 0.7367 GB, free: 71.51 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/1.889, allocations: 63.34 kB / 0.7367 GB, free: 71.43 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/1.889, allocations: 200.5 kB / 0.7369 GB, free: 71.23 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/1.889, allocations: 25.7 kB / 0.737 GB, free: 71.2 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/1.889, allocations: 250.6 kB / 0.7372 GB, free: 70.95 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.658e-05/1.889, allocations: 98.5 kB / 0.7373 GB, free: 70.86 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.99e-05/1.889, allocations: 0 / 0.7373 GB, free: 70.86 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 6.888e-05/1.889, allocations: 326.8 kB / 0.7376 GB, free: 70.53 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/1.889, allocations: 72.75 kB / 0.7377 GB, free: 70.45 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/1.89, allocations: 159.5 kB / 0.7378 GB, free: 70.27 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007031/1.89, allocations: 136.6 kB / 0.738 GB, free: 70.13 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.89, allocations: 4 kB / 0.738 GB, free: 70.13 MB / 411.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001132/1.891, allocations: 358 kB / 0.7383 GB, free: 69.77 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/1.891, allocations: 8 kB / 0.7383 GB, free: 69.76 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/1.891, allocations: 0 / 0.7383 GB, free: 69.76 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004423/1.892, allocations: 80.81 kB / 0.7384 GB, free: 69.68 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/1.892, allocations: 67.91 kB / 0.7384 GB, free: 69.61 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007611/1.893, allocations: 0.6776 MB / 0.7391 GB, free: 68.91 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/1.894, allocations: 8.031 kB / 0.7391 GB, free: 68.91 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/1.894, allocations: 20 kB / 0.7391 GB, free: 68.89 MB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: shortPipe.m_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from port_a to port_b (m_flow > 0 is design flow direction)" type: Real ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 {3 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001953/1.894, allocations: 125.3 kB / 0.7393 GB, free: 68.76 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001067/1.895, allocations: 306.2 kB / 0.7395 GB, free: 68.45 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.649e-05/1.895, allocations: 23.72 kB / 0.7396 GB, free: 68.43 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/1.896, allocations: 377.3 kB / 0.7399 GB, free: 68.03 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/1.896, allocations: 7.969 kB / 0.7399 GB, free: 68.02 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.896, allocations: 4.094 kB / 0.7399 GB, free: 68.02 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008968/1.897, allocations: 0.5605 MB / 0.7405 GB, free: 67.37 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/1.899, allocations: 0.6864 MB / 0.7412 GB, free: 66.63 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.899, allocations: 0 / 0.7412 GB, free: 66.63 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/1.899, allocations: 39.91 kB / 0.7412 GB, free: 66.59 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/1.899, allocations: 68.81 kB / 0.7413 GB, free: 66.52 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/1.899, allocations: 4 kB / 0.7413 GB, free: 66.52 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006502/1.9, allocations: 0.6577 MB / 0.7419 GB, free: 65.83 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.9, allocations: 4 kB / 0.7419 GB, free: 65.83 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/1.901, allocations: 490.9 kB / 0.7424 GB, free: 65.31 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/1.901, allocations: 112.7 kB / 0.7425 GB, free: 65.18 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.854e-05/1.901, allocations: 4 kB / 0.7425 GB, free: 65.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/1.902, allocations: 7.938 kB / 0.7425 GB, free: 65.17 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/1.902, allocations: 20.03 kB / 0.7425 GB, free: 65.15 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/1.902, allocations: 19.98 kB / 0.7425 GB, free: 65.13 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.000192/1.902, allocations: 164.5 kB / 0.7427 GB, free: 64.97 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.902, allocations: 0 / 0.7427 GB, free: 64.97 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0009457/1.903, allocations: 151.9 kB / 0.7428 GB, free: 64.82 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.00178/1.905, allocations: 1.284 MB / 0.7441 GB, free: 63.5 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0007741/1.906, allocations: 234.3 kB / 0.7443 GB, free: 63.28 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.906, allocations: 0.625 kB / 0.7443 GB, free: 63.28 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/1.906, allocations: 112.9 kB / 0.7444 GB, free: 63.17 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/1.907, allocations: 126.5 kB / 0.7445 GB, free: 63.05 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/1.909, allocations: 0.5379 MB / 0.7451 GB, free: 62.46 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/1.909, allocations: 0.7758 MB / 0.7458 GB, free: 61.66 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/1.909, allocations: 95.34 kB / 0.7459 GB, free: 61.57 MB / 411.1 MB Notification: Performance of SimCode: time 8.51e-07/1.909, allocations: 0 / 0.7459 GB, free: 61.57 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.872/4.781, allocations: 8.217 MB / 0.7539 GB, free: 53.36 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Incompressible_Glycol47_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Incompressible_Glycol47.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Incompressible.Glycol47_res.mat does not exist to compare? outputFormat=mat