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.001164/0.001164, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006948/0.0006945, allocations: 98.3 kB / 271.2 MB, free: 8.25 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.3484/0.3484, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.000395, allocations: 8 kB / 432.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 58.85 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4211/0.5458, allocations: 167.1 MB / 0.6426 GB, free: 15.4 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.556, allocations: 6.623 MB / 0.649 GB, free: 8.766 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.5572, allocations: 27.75 kB / 0.6491 GB, free: 8.738 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.5587, allocations: 354 kB / 0.6494 GB, free: 8.391 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006016/0.5648, allocations: 1.822 MB / 0.6512 GB, free: 6.566 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004431/0.5692, allocations: 1.409 MB / 0.6526 GB, free: 5.168 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.5727, allocations: 2.66 MB / 0.6552 GB, free: 2.504 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.574, allocations: 0.6699 MB / 0.6558 GB, free: 1.84 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004701/0.5787, allocations: 1.83 MB / 0.6576 GB, free: 4 kB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003563/0.5823, allocations: 1.699 MB / 0.6593 GB, free: 14.3 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003851/0.5827, allocations: 56 kB / 0.6593 GB, free: 14.24 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004674/0.5874, allocations: 2.158 MB / 0.6614 GB, free: 12.08 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.5886, allocations: 0.6703 MB / 0.6621 GB, free: 11.41 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001653/0.5902, allocations: 0.6982 MB / 0.6628 GB, free: 10.7 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003281/0.5935, allocations: 2.097 MB / 0.6648 GB, free: 8.605 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.5935, allocations: 0 / 0.6648 GB, free: 8.605 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.5935, allocations: 7.984 kB / 0.6648 GB, free: 8.598 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.458e-05/0.5936, allocations: 0 / 0.6648 GB, free: 8.598 MB / 490.7 MB 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.003675/0.5973, allocations: 1.391 MB / 0.6662 GB, free: 7.156 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.5974, allocations: 15.97 kB / 0.6662 GB, free: 7.141 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005562/0.5979, allocations: 184.8 kB / 0.6664 GB, free: 6.949 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.5996, allocations: 310.2 kB / 0.6667 GB, free: 6.645 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001605/0.6012, allocations: 0.7454 MB / 0.6674 GB, free: 5.859 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.6014, allocations: 141.3 kB / 0.6675 GB, free: 5.707 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.6017, allocations: 104 kB / 0.6676 GB, free: 5.605 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003231/0.6049, allocations: 1.829 MB / 0.6694 GB, free: 3.707 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.605, allocations: 15.78 kB / 0.6694 GB, free: 3.691 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/0.6051, allocations: 44 kB / 0.6695 GB, free: 3.648 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.6053, allocations: 93.95 kB / 0.6695 GB, free: 3.559 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002957/0.6082, allocations: 1.706 MB / 0.6712 GB, free: 1.852 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.2299/0.8382, allocations: 6.934 MB / 0.678 GB, free: 147.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.8396, allocations: 0.8493 MB / 0.6788 GB, free: 147.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006288/0.8402, allocations: 439.8 kB / 0.6792 GB, free: 147.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.8404, allocations: 145.4 kB / 0.6794 GB, free: 147 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.8404, allocations: 43.84 kB / 0.6794 GB, free: 146.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=60): time 2.986e-06/0.8404, allocations: 0.8438 kB / 0.6794 GB, free: 146.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=72): time 0.01009/0.8505, allocations: 4.139 MB / 0.6835 GB, free: 146.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.8506, allocations: 111.3 kB / 0.6836 GB, free: 146.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.8518, allocations: 1.097 MB / 0.6846 GB, free: 145.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.996e-05/0.8519, allocations: 43.42 kB / 0.6847 GB, free: 145.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/0.8521, allocations: 0.5211 MB / 0.6852 GB, free: 145.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.8523, allocations: 270 kB / 0.6854 GB, free: 145.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-05/0.8524, allocations: 21.62 kB / 0.6855 GB, free: 145.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.8525, allocations: 345.6 kB / 0.6858 GB, free: 144.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007259/0.8532, allocations: 0.5718 MB / 0.6864 GB, free: 144.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008307/0.854, allocations: 0.8601 MB / 0.6872 GB, free: 144.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.8557, allocations: 1.427 MB / 0.6886 GB, free: 143.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.8558, allocations: 2.781 kB / 0.6886 GB, free: 143.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002783/0.8585, allocations: 1.983 MB / 0.6905 GB, free: 142.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.8586, allocations: 7.094 kB / 0.6905 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.8586, allocations: 9.75 kB / 0.6905 GB, free: 142.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004504/0.8631, allocations: 1.384 MB / 0.6919 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005071/0.8636, allocations: 140.4 kB / 0.692 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/0.8659, allocations: 1.914 MB / 0.6939 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.867, allocations: 108.4 kB / 0.694 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.8671, allocations: 70.89 kB / 0.6941 GB, free: 141.3 MB / 490.7 MB 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 () * Number of clocked 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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006405/0.8678, allocations: 398.8 kB / 0.6944 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.868, allocations: 113.1 kB / 0.6946 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002038/0.87, allocations: 1.381 MB / 0.6959 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.87, allocations: 10.44 kB / 0.6959 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.87, allocations: 0 / 0.6959 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.8701, allocations: 7.438 kB / 0.6959 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.8735, allocations: 2.676 MB / 0.6985 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.8735, allocations: 0 / 0.6985 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.8752, allocations: 322.1 kB / 0.6988 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.8754, allocations: 72.92 kB / 0.6989 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.489e-05/0.8755, allocations: 32.05 kB / 0.6989 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.8771, allocations: 2.839 MB / 0.7017 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.8772, allocations: 3.938 kB / 0.7017 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.8796, allocations: 1.878 MB / 0.7036 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006247/0.8802, allocations: 343.1 kB / 0.7039 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.8804, allocations: 29.56 kB / 0.7039 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000889/0.8813, allocations: 81.3 kB / 0.704 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.8815, allocations: 65.34 kB / 0.704 GB, free: 135.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.8816, allocations: 65.3 kB / 0.7041 GB, free: 135.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009146/0.8825, allocations: 0.7851 MB / 0.7049 GB, free: 135.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8826, allocations: 0 / 0.7049 GB, free: 135.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001602/0.8842, allocations: 0.5258 MB / 0.7054 GB, free: 135 MB / 490.7 MB 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 () * Number of clocked 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.004749/0.8889, allocations: 3.213 MB / 0.7085 GB, free: 133.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.8914, allocations: 1.457 MB / 0.71 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.8914, allocations: 0.6562 kB / 0.71 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.8928, allocations: 0.8443 MB / 0.7108 GB, free: 132.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/0.896, allocations: 0.72 MB / 0.7115 GB, free: 132.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.9093, allocations: 9.445 MB / 0.7207 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.91, allocations: 1.178 MB / 0.7219 GB, free: 127.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/0.9107, allocations: 440.8 kB / 0.7223 GB, free: 126.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.283e-06/0.9107, allocations: 0 / 0.7223 GB, free: 126.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.75/7.661, allocations: 33 MB / 0.7545 GB, free: 101.6 MB / 490.7 MB (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