Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 87.5 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2447/0.2447, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.307e-05, allocations: 4.219 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1686, allocations: 61.92 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.374/2.543, allocations: 0.7915 GB / 1.286 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/2.543, allocations: 86.77 kB / 1.286 GB, free: 4.332 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.933/5.476, allocations: 0.694 GB / 1.98 GB, free: 91.79 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.244e-06/5.476, allocations: 0 / 1.98 GB, free: 91.79 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.691e-05/5.476, allocations: 25.66 kB / 1.98 GB, free: 91.79 MB / 0.5261 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.006421/5.483, allocations: 1.581 MB / 1.982 GB, free: 91.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/5.483, allocations: 15.48 kB / 1.982 GB, free: 91.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001544/5.484, allocations: 303.8 kB / 1.982 GB, free: 91.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/5.486, allocations: 0.8118 MB / 1.983 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/5.486, allocations: 113.1 kB / 1.983 GB, free: 90.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/5.486, allocations: 60.09 kB / 1.983 GB, free: 90.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002837/5.489, allocations: 1.447 MB / 1.985 GB, free: 90.65 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/5.492, allocations: 1.616 MB / 1.986 GB, free: 90.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/5.492, allocations: 7.219 kB / 1.986 GB, free: 90.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/5.492, allocations: 3.625 kB / 1.986 GB, free: 90.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-05/5.492, allocations: 74.22 kB / 1.986 GB, free: 90.13 MB / 0.5261 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.008016/5.5, allocations: 6.691 MB / 1.993 GB, free: 85.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008517/5.501, allocations: 0.7693 MB / 1.994 GB, free: 85.33 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/5.501, allocations: 434.2 kB / 1.994 GB, free: 85.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000191/5.501, allocations: 277.1 kB / 1.994 GB, free: 84.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/5.501, allocations: 49.91 kB / 1.994 GB, free: 84.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 3.026e-06/5.501, allocations: 0 / 1.994 GB, free: 84.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.008765/5.51, allocations: 3.639 MB / 1.998 GB, free: 83.29 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/5.51, allocations: 111.1 kB / 1.998 GB, free: 83.17 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006906/5.511, allocations: 0.5762 MB / 1.998 GB, free: 82.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.772e-05/5.511, allocations: 25.7 kB / 1.998 GB, free: 82.87 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/5.511, allocations: 0.5439 MB / 1.999 GB, free: 82.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000175/5.512, allocations: 251.6 kB / 1.999 GB, free: 82.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.25e-05/5.512, allocations: 0 / 1.999 GB, free: 82.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001135/5.512, allocations: 386.1 kB / 2 GB, free: 81.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/5.512, allocations: 0.5628 MB / 2 GB, free: 81.69 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/5.513, allocations: 0.8358 MB / 2.001 GB, free: 81.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009831/5.514, allocations: 0.7031 MB / 2.002 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/5.514, allocations: 3.344 kB / 2.002 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002673/5.517, allocations: 1.879 MB / 2.004 GB, free: 80.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/5.517, allocations: 7.781 kB / 2.004 GB, free: 80.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/5.517, allocations: 21.77 kB / 2.004 GB, free: 80.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/5.521, allocations: 1.251 MB / 2.005 GB, free: 79.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/5.521, allocations: 143 kB / 2.005 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/5.524, allocations: 1.986 MB / 2.007 GB, free: 77.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/5.525, allocations: 102.3 kB / 2.007 GB, free: 77.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/5.525, allocations: 67.98 kB / 2.007 GB, free: 77.38 MB / 0.5261 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.0003602/5.526, allocations: 142.2 kB / 2.007 GB, free: 77.24 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00178/5.527, allocations: 1.195 MB / 2.008 GB, free: 76.03 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/5.528, allocations: 79.06 kB / 2.008 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/5.53, allocations: 1.439 MB / 2.01 GB, free: 74.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/5.53, allocations: 4 kB / 2.01 GB, free: 74.52 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/5.53, allocations: 4 kB / 2.01 GB, free: 74.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.036e-06/5.53, allocations: 7.359 kB / 2.01 GB, free: 74.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/5.533, allocations: 2.548 MB / 2.012 GB, free: 71.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/5.533, allocations: 3 kB / 2.012 GB, free: 71.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/5.535, allocations: 335.6 kB / 2.013 GB, free: 71.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001781/5.535, allocations: 68.36 kB / 2.013 GB, free: 71.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/5.535, allocations: 23.97 kB / 2.013 GB, free: 71.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/5.537, allocations: 2.766 MB / 2.015 GB, free: 68.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/5.537, allocations: 7.562 kB / 2.015 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/5.54, allocations: 1.83 MB / 2.017 GB, free: 66.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007522/5.54, allocations: 314.8 kB / 2.017 GB, free: 66.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/5.54, allocations: 15.98 kB / 2.018 GB, free: 66.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009909/5.541, allocations: 73.17 kB / 2.018 GB, free: 66.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/5.542, allocations: 55.64 kB / 2.018 GB, free: 66.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/5.542, allocations: 67.52 kB / 2.018 GB, free: 66.14 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00063/5.542, allocations: 459.1 kB / 2.018 GB, free: 65.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/5.542, allocations: 0 / 2.018 GB, free: 65.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002453/5.545, allocations: 0.5037 MB / 2.019 GB, free: 65.2 MB / 0.5261 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.005637/5.551, allocations: 3.903 MB / 2.022 GB, free: 61.59 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002393/5.553, allocations: 1.43 MB / 2.024 GB, free: 60.16 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/5.553, allocations: 0.7812 kB / 2.024 GB, free: 60.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001333/5.554, allocations: 0.8308 MB / 2.025 GB, free: 59.33 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/5.557, allocations: 414.8 kB / 2.025 GB, free: 58.95 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/5.562, allocations: 2.629 MB / 2.028 GB, free: 56.58 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/5.563, allocations: 1.201 MB / 2.029 GB, free: 55.36 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001387/5.564, allocations: 419.2 kB / 2.029 GB, free: 55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006068/5.565, allocations: 432.2 kB / 2.03 GB, free: 54.58 MB / 0.5261 GB Notification: Performance of SimCode: time 8.21e-07/5.565, allocations: 4 kB / 2.03 GB, free: 54.58 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07165/5.637, allocations: 41.76 MB / 2.07 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/5.637, allocations: 214.5 kB / 2.071 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.392/9.029, allocations: 0 / 2.071 GB, free: 13.02 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat