Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.3 MB / 213.7 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.001085/0.001085, allocations: 94.61 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2293/0.2293, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.626e-05, allocations: 4 kB / 418.4 MB, free: 28.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1513, allocations: 58.85 MB / 477.2 MB, free: 1.535 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.717/2.868, allocations: 0.8254 GB / 1.291 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/2.869, allocations: 92.02 kB / 1.292 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.414/5.283, allocations: 0.7026 GB / 1.994 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.914e-06/5.283, allocations: 0 / 1.994 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.731e-05/5.283, allocations: 28 kB / 1.994 GB, free: 23.47 MB / 0.4948 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.005563/5.288, allocations: 1.563 MB / 1.996 GB, free: 21.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/5.288, allocations: 8.031 kB / 1.996 GB, free: 21.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001943/5.29, allocations: 310.3 kB / 1.996 GB, free: 21.55 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001721/5.292, allocations: 0.8044 MB / 1.997 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/5.292, allocations: 109.4 kB / 1.997 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/5.292, allocations: 60 kB / 1.997 GB, free: 20.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002006/5.294, allocations: 1.449 MB / 1.998 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/5.297, allocations: 1.617 MB / 2 GB, free: 17.38 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/5.297, allocations: 3.906 kB / 2 GB, free: 17.38 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/5.297, allocations: 4 kB / 2 GB, free: 17.38 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.754e-05/5.297, allocations: 89.89 kB / 2 GB, free: 17.29 MB / 0.4948 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.008898/5.306, allocations: 6.703 MB / 2.007 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008518/5.307, allocations: 0.7749 MB / 2.007 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/5.307, allocations: 426.2 kB / 2.008 GB, free: 8.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002536/5.307, allocations: 244.3 kB / 2.008 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/5.307, allocations: 43.36 kB / 2.008 GB, free: 8.586 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=60): time 2.836e-06/5.307, allocations: 0 / 2.008 GB, free: 8.586 MB / 0.4948 GB Notification: Performance of matching and sorting (n=72): time 0.008839/5.316, allocations: 3.549 MB / 2.011 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/5.316, allocations: 111.6 kB / 2.012 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006431/5.317, allocations: 0.5733 MB / 2.012 GB, free: 4.227 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001037/5.317, allocations: 29.7 kB / 2.012 GB, free: 4.191 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/5.317, allocations: 0.5333 MB / 2.013 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/5.317, allocations: 256.3 kB / 2.013 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/5.318, allocations: 0 / 2.013 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001062/5.318, allocations: 386.8 kB / 2.013 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006483/5.318, allocations: 0.5609 MB / 2.014 GB, free: 2.445 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007314/5.319, allocations: 0.8451 MB / 2.015 GB, free: 1.477 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007976/5.32, allocations: 0.668 MB / 2.015 GB, free: 0.8086 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/5.32, allocations: 0 / 2.015 GB, free: 0.8086 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00276/5.323, allocations: 1.847 MB / 2.017 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/5.323, allocations: 8 kB / 2.017 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/5.323, allocations: 11.98 kB / 2.017 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004478/5.327, allocations: 1.246 MB / 2.018 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008121/5.328, allocations: 151.8 kB / 2.018 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003367/5.331, allocations: 1.987 MB / 2.02 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/5.333, allocations: 99.77 kB / 2.021 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/5.333, allocations: 67.98 kB / 2.021 GB, free: 11.35 MB / 0.5105 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.0004799/5.334, allocations: 128.8 kB / 2.021 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001995/5.336, allocations: 1.172 MB / 2.022 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/5.336, allocations: 91.02 kB / 2.022 GB, free: 9.945 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/5.338, allocations: 1.317 MB / 2.023 GB, free: 8.613 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/5.338, allocations: 8 kB / 2.023 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/5.338, allocations: 3.938 kB / 2.023 GB, free: 8.602 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/5.338, allocations: 7.984 kB / 2.023 GB, free: 8.594 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/5.343, allocations: 2.556 MB / 2.026 GB, free: 5.988 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/5.343, allocations: 0 / 2.026 GB, free: 5.988 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/5.345, allocations: 331.6 kB / 2.026 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002339/5.345, allocations: 68.78 kB / 2.026 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-05/5.346, allocations: 27.97 kB / 2.026 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/5.348, allocations: 2.768 MB / 2.029 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/5.348, allocations: 4.219 kB / 2.029 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002929/5.351, allocations: 1.827 MB / 2.031 GB, free: 0.7109 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007276/5.352, allocations: 312 kB / 2.031 GB, free: 396 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/5.352, allocations: 12 kB / 2.031 GB, free: 384 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/5.353, allocations: 75.81 kB / 2.031 GB, free: 308 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/5.353, allocations: 56.66 kB / 2.031 GB, free: 252 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/5.353, allocations: 67.94 kB / 2.031 GB, free: 184 kB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.4118/5.765, allocations: 458.3 kB / 2.032 GB, free: 89.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.633e-06/5.765, allocations: 0 / 2.032 GB, free: 89.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003278/5.769, allocations: 0.5636 MB / 2.032 GB, free: 89.67 MB / 0.5105 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.008239/5.777, allocations: 4.016 MB / 2.036 GB, free: 88.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003084/5.78, allocations: 1.426 MB / 2.037 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/5.78, allocations: 3.469 kB / 2.037 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001713/5.782, allocations: 0.833 MB / 2.038 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002649/5.784, allocations: 402 kB / 2.039 GB, free: 88.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00719/5.792, allocations: 2.662 MB / 2.041 GB, free: 88.24 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009534/5.793, allocations: 1.203 MB / 2.042 GB, free: 87.53 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001703/5.794, allocations: 348.1 kB / 2.043 GB, free: 87.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007973/5.795, allocations: 426.7 kB / 2.043 GB, free: 87.51 MB / 0.5105 GB Notification: Performance of SimCode: time 1.953e-06/5.795, allocations: 0 / 2.043 GB, free: 87.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08831/5.883, allocations: 42.7 MB / 2.085 GB, free: 86.62 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/5.884, allocations: 214.4 kB / 2.085 GB, free: 86.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.722/9.606, allocations: 0 / 2.085 GB, free: 86.34 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat