Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.0008293, allocations: 98.36 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2335/0.2335, allocations: 45.16 MB / 383.8 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.885e-05/1.888e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1479, allocations: 63.24 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.28/2.428, allocations: 0.7925 GB / 1.297 GB, free: 72.71 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/2.429, allocations: 96.69 kB / 1.297 GB, free: 72.62 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.771/5.2, allocations: 0.6982 GB / 1.995 GB, free: 91.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.784e-06/5.2, allocations: 0 / 1.995 GB, free: 91.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001243/5.2, allocations: 26.88 kB / 1.995 GB, free: 91.54 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.006802/5.207, allocations: 1.578 MB / 1.997 GB, free: 91.15 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/5.207, allocations: 11.77 kB / 1.997 GB, free: 91.15 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/5.209, allocations: 308.5 kB / 1.997 GB, free: 91.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/5.211, allocations: 0.8022 MB / 1.998 GB, free: 90.85 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/5.211, allocations: 108.4 kB / 1.998 GB, free: 90.79 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/5.211, allocations: 60.48 kB / 1.998 GB, free: 90.79 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002674/5.214, allocations: 1.444 MB / 2 GB, free: 90.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/5.217, allocations: 1.619 MB / 2.001 GB, free: 90.57 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/5.217, allocations: 7.078 kB / 2.001 GB, free: 90.56 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/5.217, allocations: 3.062 kB / 2.001 GB, free: 90.56 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.783e-05/5.217, allocations: 86.12 kB / 2.001 GB, free: 90.56 MB / 0.5417 GB 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.01216/5.229, allocations: 6.708 MB / 2.008 GB, free: 87.19 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/5.23, allocations: 0.7736 MB / 2.009 GB, free: 87.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007474/5.231, allocations: 425.7 kB / 2.009 GB, free: 87.14 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003034/5.232, allocations: 278 kB / 2.009 GB, free: 86.86 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/5.232, allocations: 45.27 kB / 2.009 GB, free: 86.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 3.386e-06/5.232, allocations: 2.75 kB / 2.009 GB, free: 86.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.01069/5.242, allocations: 3.651 MB / 2.013 GB, free: 86.16 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/5.242, allocations: 111.2 kB / 2.013 GB, free: 86.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007135/5.243, allocations: 0.5762 MB / 2.013 GB, free: 85.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001139/5.243, allocations: 25.7 kB / 2.013 GB, free: 85.87 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/5.243, allocations: 0.5408 MB / 2.014 GB, free: 85.63 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/5.244, allocations: 255.3 kB / 2.014 GB, free: 85.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/5.244, allocations: 0 / 2.014 GB, free: 85.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001072/5.244, allocations: 388 kB / 2.015 GB, free: 85.19 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006628/5.245, allocations: 0.5562 MB / 2.015 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/5.245, allocations: 0.8416 MB / 2.016 GB, free: 84.86 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/5.246, allocations: 0.7052 MB / 2.017 GB, free: 84.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/5.246, allocations: 3.781 kB / 2.017 GB, free: 84.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002552/5.249, allocations: 1.876 MB / 2.019 GB, free: 84.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/5.249, allocations: 7.344 kB / 2.019 GB, free: 84.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/5.249, allocations: 13.8 kB / 2.019 GB, free: 84.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004043/5.253, allocations: 1.255 MB / 2.02 GB, free: 84.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/5.254, allocations: 140.1 kB / 2.02 GB, free: 84.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/5.257, allocations: 1.986 MB / 2.022 GB, free: 84.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/5.258, allocations: 103.1 kB / 2.022 GB, free: 84.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/5.258, allocations: 68.34 kB / 2.022 GB, free: 84.19 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {10 34} Notification: Performance of prepare postOptimizeDAE: time 0.000365/5.258, allocations: 136.9 kB / 2.022 GB, free: 84.08 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001725/5.26, allocations: 1.201 MB / 2.023 GB, free: 83.98 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/5.26, allocations: 78.5 kB / 2.023 GB, free: 83.95 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/5.262, allocations: 1.435 MB / 2.025 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/5.262, allocations: 7.531 kB / 2.025 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/5.262, allocations: 3.75 kB / 2.025 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/5.263, allocations: 3.891 kB / 2.025 GB, free: 83.87 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/5.266, allocations: 2.559 MB / 2.027 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/5.266, allocations: 0 / 2.027 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/5.268, allocations: 337.9 kB / 2.028 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/5.268, allocations: 70.39 kB / 2.028 GB, free: 83.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.843e-05/5.268, allocations: 26.7 kB / 2.028 GB, free: 83.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/5.27, allocations: 2.778 MB / 2.03 GB, free: 81.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/5.27, allocations: 0 / 2.03 GB, free: 81.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/5.273, allocations: 1.834 MB / 2.032 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008419/5.273, allocations: 314.4 kB / 2.033 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/5.274, allocations: 19 kB / 2.033 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/5.275, allocations: 73.17 kB / 2.033 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/5.275, allocations: 54.91 kB / 2.033 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/5.275, allocations: 65.84 kB / 2.033 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006429/5.276, allocations: 458.5 kB / 2.033 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/5.276, allocations: 0 / 2.033 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002837/5.278, allocations: 0.5062 MB / 2.034 GB, free: 80.61 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * 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): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.005727/5.284, allocations: 3.908 MB / 2.037 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002326/5.287, allocations: 1.427 MB / 2.039 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/5.287, allocations: 0.7812 kB / 2.039 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00136/5.288, allocations: 0.8379 MB / 2.04 GB, free: 79.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/5.29, allocations: 417.5 kB / 2.04 GB, free: 79.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005775/5.296, allocations: 2.626 MB / 2.043 GB, free: 79.08 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/5.297, allocations: 1.197 MB / 2.044 GB, free: 78.38 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001386/5.298, allocations: 426.4 kB / 2.044 GB, free: 78.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006144/5.299, allocations: 430.3 kB / 2.045 GB, free: 78.36 MB / 0.5417 GB Notification: Performance of SimCode: time 5.01e-07/5.299, allocations: 0 / 2.045 GB, free: 78.36 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06612/5.365, allocations: 41.78 MB / 2.085 GB, free: 77.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/5.365, allocations: 201.6 kB / 2.086 GB, free: 77.19 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.315/8.68, allocations: 0 / 2.086 GB, free: 77.19 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat