Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001417/0.001417, allocations: 178.4 kB / 8.362 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.345/2.345, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001139/0.001139, allocations: 100.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.311/0.311, allocations: 43.48 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.636e-05/2.633e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.437/0.437, allocations: 58.85 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.535/2.972, allocations: 0.8254 GB / 1.291 GB, free: 95.96 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/2.973, allocations: 101.2 kB / 1.292 GB, free: 95.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.977/6.95, allocations: 0.7026 GB / 1.994 GB, free: 81.06 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.716e-06/6.95, allocations: 0 / 1.994 GB, free: 81.06 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001085/6.95, allocations: 29.14 kB / 1.994 GB, free: 81.06 MB / 0.5108 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.007357/6.957, allocations: 1.558 MB / 1.996 GB, free: 80.66 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/6.957, allocations: 11.75 kB / 1.996 GB, free: 80.66 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002705/6.96, allocations: 313 kB / 1.996 GB, free: 80.6 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/6.963, allocations: 0.805 MB / 1.997 GB, free: 80.36 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/6.964, allocations: 115.8 kB / 1.997 GB, free: 80.3 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003968/6.964, allocations: 59.31 kB / 1.997 GB, free: 80.3 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004361/6.968, allocations: 1.449 MB / 1.998 GB, free: 80.29 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005153/6.974, allocations: 1.614 MB / 2 GB, free: 80.07 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-05/6.974, allocations: 8.062 kB / 2 GB, free: 80.07 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003088/6.974, allocations: 4.469 kB / 2 GB, free: 80.07 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/6.974, allocations: 77.12 kB / 2 GB, free: 80.07 MB / 0.5108 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.01709/6.991, allocations: 6.708 MB / 2.007 GB, free: 76.73 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/6.993, allocations: 0.7709 MB / 2.007 GB, free: 76.69 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009285/6.994, allocations: 428.2 kB / 2.008 GB, free: 76.68 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005876/6.995, allocations: 245.5 kB / 2.008 GB, free: 76.49 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.424e-05/6.995, allocations: 49.52 kB / 2.008 GB, free: 76.45 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=60): time 5.08e-06/6.995, allocations: 0 / 2.008 GB, free: 76.45 MB / 0.5108 GB Notification: Performance of matching and sorting (n=72): time 0.01605/7.011, allocations: 3.54 MB / 2.011 GB, free: 75.79 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/7.011, allocations: 116.6 kB / 2.012 GB, free: 75.66 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/7.012, allocations: 0.5743 MB / 2.012 GB, free: 75.53 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0002807/7.012, allocations: 25.7 kB / 2.012 GB, free: 75.5 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.000411/7.013, allocations: 0.5701 MB / 2.013 GB, free: 75.2 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/7.013, allocations: 258.6 kB / 2.013 GB, free: 75.07 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/7.013, allocations: 0 / 2.013 GB, free: 75.07 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001089/7.013, allocations: 351.6 kB / 2.013 GB, free: 74.75 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/7.015, allocations: 0.5573 MB / 2.014 GB, free: 74.75 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/7.016, allocations: 0.8386 MB / 2.015 GB, free: 74.43 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/7.018, allocations: 0.6677 MB / 2.015 GB, free: 74.42 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/7.018, allocations: 3.094 kB / 2.015 GB, free: 74.42 MB / 0.5108 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004173/7.022, allocations: 1.809 MB / 2.017 GB, free: 74.34 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/7.022, allocations: 10.41 kB / 2.017 GB, free: 74.34 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/7.022, allocations: 13.59 kB / 2.017 GB, free: 74.34 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007289/7.029, allocations: 1.255 MB / 2.018 GB, free: 74.32 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/7.03, allocations: 141.4 kB / 2.018 GB, free: 74.32 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004162/7.035, allocations: 1.991 MB / 2.02 GB, free: 73.77 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/7.037, allocations: 94.47 kB / 2.02 GB, free: 73.77 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/7.037, allocations: 64.09 kB / 2.021 GB, free: 73.77 MB / 0.5108 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.0004862/7.037, allocations: 140.9 kB / 2.021 GB, free: 73.66 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002789/7.04, allocations: 1.172 MB / 2.022 GB, free: 73.57 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/7.041, allocations: 80.78 kB / 2.022 GB, free: 73.53 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003354/7.044, allocations: 1.325 MB / 2.023 GB, free: 73.45 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/7.044, allocations: 8.406 kB / 2.023 GB, free: 73.45 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/7.044, allocations: 3.953 kB / 2.023 GB, free: 73.45 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/7.044, allocations: 3.516 kB / 2.023 GB, free: 73.45 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006308/7.05, allocations: 2.56 MB / 2.026 GB, free: 73.12 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/7.051, allocations: 0 / 2.026 GB, free: 73.12 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003621/7.054, allocations: 336.4 kB / 2.026 GB, free: 73.12 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/7.054, allocations: 67.25 kB / 2.026 GB, free: 73.12 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/7.055, allocations: 36.27 kB / 2.026 GB, free: 73.11 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00259/7.057, allocations: 2.76 MB / 2.029 GB, free: 70.65 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/7.057, allocations: 3.938 kB / 2.029 GB, free: 70.65 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003925/7.061, allocations: 1.827 MB / 2.031 GB, free: 70.42 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/7.062, allocations: 305.6 kB / 2.031 GB, free: 70.29 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/7.063, allocations: 15.62 kB / 2.031 GB, free: 70.29 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/7.064, allocations: 77.88 kB / 2.031 GB, free: 70.29 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/7.065, allocations: 55.59 kB / 2.031 GB, free: 70.29 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002237/7.065, allocations: 73.53 kB / 2.031 GB, free: 70.29 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0007481/7.066, allocations: 448.4 kB / 2.032 GB, free: 70.2 MB / 0.5108 GB Notification: Performance of sort global known variables: time 4.71e-07/7.066, allocations: 3.531 kB / 2.032 GB, free: 70.2 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.00302/7.069, allocations: 0.5719 MB / 2.032 GB, free: 70.15 MB / 0.5108 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.00894/7.078, allocations: 4.011 MB / 2.036 GB, free: 69.17 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.003902/7.082, allocations: 1.422 MB / 2.037 GB, free: 69.14 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/7.082, allocations: 7.938 kB / 2.037 GB, free: 69.14 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.002325/7.084, allocations: 0.8284 MB / 2.038 GB, free: 69.03 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003659/7.088, allocations: 420.4 kB / 2.039 GB, free: 69.02 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009886/7.098, allocations: 2.736 MB / 2.041 GB, free: 68.46 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009434/7.099, allocations: 1.205 MB / 2.042 GB, free: 67.77 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/7.1, allocations: 427.4 kB / 2.043 GB, free: 67.76 MB / 0.5108 GB Notification: Performance of SimCode: time 1.182e-06/7.1, allocations: 0 / 2.043 GB, free: 67.76 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.884/10.98, allocations: 37.38 MB / 2.079 GB, free: 66.51 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat