Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",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.00164/0.00164, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 87.94 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.393e-05/2.426e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1262, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.04/2.167, allocations: 0.7112 GB / 1.066 GB, free: 147.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/2.167, allocations: 104.2 kB / 1.066 GB, free: 147.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.817/3.984, allocations: 0.5432 GB / 1.609 GB, free: 72 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.913e-06/3.984, allocations: 0.7188 kB / 1.609 GB, free: 72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.475e-05/3.984, allocations: 17.34 kB / 1.609 GB, free: 72 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002456/3.987, allocations: 0.9672 MB / 1.61 GB, free: 71.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/3.987, allocations: 11.41 kB / 1.61 GB, free: 71.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006864/3.988, allocations: 147.4 kB / 1.61 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007274/3.988, allocations: 472.8 kB / 1.611 GB, free: 71.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/3.988, allocations: 29.7 kB / 1.611 GB, free: 71.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/3.989, allocations: 51.83 kB / 1.611 GB, free: 71.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001261/3.99, allocations: 0.7933 MB / 1.612 GB, free: 71.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/3.991, allocations: 0.8102 MB / 1.612 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/3.991, allocations: 0 / 1.612 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-05/3.991, allocations: 2.875 kB / 1.612 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/3.991, allocations: 16.88 kB / 1.612 GB, free: 70.77 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/3.996, allocations: 3.231 MB / 1.616 GB, free: 68.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006601/3.996, allocations: 0.5963 MB / 1.616 GB, free: 68.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003666/3.997, allocations: 335.1 kB / 1.616 GB, free: 68.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/3.997, allocations: 19.55 kB / 1.616 GB, free: 68.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/3.997, allocations: 45.94 kB / 1.617 GB, free: 68.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 2.785e-06/3.997, allocations: 3.594 kB / 1.617 GB, free: 68.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.007858/4.005, allocations: 3.118 MB / 1.62 GB, free: 66.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/4.005, allocations: 58 kB / 1.62 GB, free: 66.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/4.005, allocations: 315.2 kB / 1.62 GB, free: 66.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.587e-05/4.005, allocations: 25.7 kB / 1.62 GB, free: 66.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/4.005, allocations: 291.2 kB / 1.62 GB, free: 66.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/4.006, allocations: 244.1 kB / 1.62 GB, free: 66.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/4.006, allocations: 0 / 1.62 GB, free: 66.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/4.006, allocations: 363.1 kB / 1.621 GB, free: 65.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/4.006, allocations: 418.1 kB / 1.621 GB, free: 65.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/4.007, allocations: 495.1 kB / 1.622 GB, free: 65.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006335/4.007, allocations: 482.1 kB / 1.622 GB, free: 65.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/4.007, allocations: 3.172 kB / 1.622 GB, free: 65.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001779/4.009, allocations: 1.278 MB / 1.623 GB, free: 64.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/4.009, allocations: 6.375 kB / 1.623 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/4.009, allocations: 0 / 1.623 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/4.01, allocations: 315 kB / 1.624 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/4.011, allocations: 183.4 kB / 1.624 GB, free: 64.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006452/4.017, allocations: 9.838 MB / 1.633 GB, free: 55.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009011/4.018, allocations: 71.7 kB / 1.634 GB, free: 55.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/4.018, allocations: 45.52 kB / 1.634 GB, free: 55.07 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[2]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[3]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[4]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[5]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[6]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004225/4.019, allocations: 161.3 kB / 1.634 GB, free: 54.93 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001584/4.02, allocations: 1.077 MB / 1.635 GB, free: 54.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/4.021, allocations: 51.28 kB / 1.635 GB, free: 54.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/4.022, allocations: 1.227 MB / 1.636 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/4.022, allocations: 7.156 kB / 1.636 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/4.022, allocations: 1.812 kB / 1.636 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001281/4.024, allocations: 1.544 MB / 1.638 GB, free: 52.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/4.027, allocations: 2.111 MB / 1.64 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/4.027, allocations: 0 / 1.64 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/4.028, allocations: 224.7 kB / 1.64 GB, free: 50.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001671/4.028, allocations: 67.28 kB / 1.64 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/4.028, allocations: 31.03 kB / 1.64 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008836/4.029, allocations: 1.423 MB / 1.641 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/4.029, allocations: 0 / 1.641 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/4.031, allocations: 1.551 MB / 1.643 GB, free: 47.56 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/4.031, allocations: 131.8 kB / 1.643 GB, free: 47.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.853e-05/4.031, allocations: 19.12 kB / 1.643 GB, free: 47.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/4.032, allocations: 61.39 kB / 1.643 GB, free: 47.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/4.032, allocations: 51.48 kB / 1.643 GB, free: 47.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-05/4.032, allocations: 66.47 kB / 1.643 GB, free: 47.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002103/4.032, allocations: 244 kB / 1.643 GB, free: 47.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/4.032, allocations: 2.375 kB / 1.643 GB, free: 47.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001533/4.034, allocations: 383.4 kB / 1.644 GB, free: 46.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004147/4.038, allocations: 3.546 MB / 1.647 GB, free: 43.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001787/4.04, allocations: 1.748 MB / 1.649 GB, free: 41.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/4.04, allocations: 4 kB / 1.649 GB, free: 41.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006998/4.04, allocations: 0.6563 MB / 1.65 GB, free: 41.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/4.042, allocations: 309.1 kB / 1.65 GB, free: 41.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004146/4.046, allocations: 2.019 MB / 1.652 GB, free: 39.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/4.047, allocations: 0.9957 MB / 1.653 GB, free: 38.51 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008888/4.048, allocations: 239.9 kB / 1.653 GB, free: 38.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/4.048, allocations: 267.3 kB / 1.653 GB, free: 38.03 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/4.048, allocations: 0 / 1.653 GB, free: 38.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.055/4.103, allocations: 31.39 MB / 1.684 GB, free: 6.773 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/4.103, allocations: 174.2 kB / 1.684 GB, free: 6.574 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.13/7.233, allocations: 3.938 kB / 1.684 GB, free: 6.57 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat