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.00178/0.00178, allocations: 180 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 221.3 MB / 236 MB, free: 2.957 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.001319/0.001319, allocations: 91.67 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2516/0.2516, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.654e-05/3.656e-05, allocations: 8.156 kB / 451.9 MB, free: 9.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1686, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.515/2.684, allocations: 0.7921 GB / 1.294 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/2.684, allocations: 88.02 kB / 1.294 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.973/5.657, allocations: 0.7036 GB / 1.998 GB, free: 75.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.322e-06/5.657, allocations: 0 / 1.998 GB, free: 75.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.836e-05/5.657, allocations: 28.22 kB / 1.998 GB, free: 75.25 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.005529/5.663, allocations: 1.574 MB / 1.999 GB, free: 74.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/5.663, allocations: 14.41 kB / 1.999 GB, free: 74.59 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002509/5.663, allocations: 174.5 kB / 1.999 GB, free: 74.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00154/5.665, allocations: 306.8 kB / 2 GB, free: 74.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/5.666, allocations: 0.8103 MB / 2 GB, free: 74.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/5.667, allocations: 140.9 kB / 2.001 GB, free: 74.19 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/5.667, allocations: 109.8 kB / 2.001 GB, free: 74.19 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/5.669, allocations: 1.765 MB / 2.002 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/5.669, allocations: 7.562 kB / 2.002 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/5.67, allocations: 47.05 kB / 2.002 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.752e-05/5.67, allocations: 81.59 kB / 2.003 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/5.672, allocations: 1.598 MB / 2.004 GB, free: 73.95 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.008433/5.68, allocations: 6.848 MB / 2.011 GB, free: 70.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/5.681, allocations: 0.7752 MB / 2.012 GB, free: 70.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005119/5.682, allocations: 439.6 kB / 2.012 GB, free: 70.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002067/5.682, allocations: 276.2 kB / 2.012 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/5.682, allocations: 46.89 kB / 2.012 GB, free: 70.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 2.285e-06/5.682, allocations: 2.188 kB / 2.012 GB, free: 70.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.009287/5.691, allocations: 3.768 MB / 2.016 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/5.691, allocations: 113 kB / 2.016 GB, free: 69.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/5.693, allocations: 0.981 MB / 2.017 GB, free: 69.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001427/5.693, allocations: 43.8 kB / 2.017 GB, free: 69.11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/5.693, allocations: 0.517 MB / 2.018 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/5.693, allocations: 264.5 kB / 2.018 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/5.694, allocations: 22.91 kB / 2.018 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.749e-05/5.694, allocations: 345.9 kB / 2.018 GB, free: 68.47 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007214/5.694, allocations: 0.562 MB / 2.019 GB, free: 68.47 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008872/5.695, allocations: 0.843 MB / 2.02 GB, free: 68.15 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008772/5.696, allocations: 0.6743 MB / 2.02 GB, free: 68.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/5.696, allocations: 3.344 kB / 2.02 GB, free: 68.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002813/5.699, allocations: 1.949 MB / 2.022 GB, free: 68.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/5.699, allocations: 9.562 kB / 2.022 GB, free: 68.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/5.699, allocations: 14.77 kB / 2.022 GB, free: 68.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004497/5.704, allocations: 1.387 MB / 2.023 GB, free: 67.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006199/5.704, allocations: 142.7 kB / 2.024 GB, free: 67.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/5.707, allocations: 1.898 MB / 2.025 GB, free: 67.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/5.708, allocations: 119.3 kB / 2.026 GB, free: 67.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/5.708, allocations: 75.59 kB / 2.026 GB, free: 67.43 MB / 0.5261 GB 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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0003257/5.709, allocations: 165.4 kB / 2.026 GB, free: 67.31 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/5.709, allocations: 112.5 kB / 2.026 GB, free: 67.26 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002454/5.711, allocations: 1.465 MB / 2.027 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/5.711, allocations: 16.91 kB / 2.027 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/5.711, allocations: 0 / 2.027 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/5.711, allocations: 3.141 kB / 2.027 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/5.715, allocations: 2.674 MB / 2.03 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/5.715, allocations: 0 / 2.03 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/5.717, allocations: 325.8 kB / 2.03 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/5.717, allocations: 69.69 kB / 2.03 GB, free: 66.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/5.718, allocations: 42.62 kB / 2.03 GB, free: 66.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00173/5.719, allocations: 2.832 MB / 2.033 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/5.719, allocations: 7.219 kB / 2.033 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/5.722, allocations: 1.853 MB / 2.035 GB, free: 63.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008439/5.723, allocations: 352.3 kB / 2.035 GB, free: 63.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/5.723, allocations: 27.72 kB / 2.035 GB, free: 63.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/5.724, allocations: 86.98 kB / 2.035 GB, free: 63.83 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/5.724, allocations: 58.75 kB / 2.035 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/5.724, allocations: 69.17 kB / 2.036 GB, free: 63.82 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009853/5.725, allocations: 0.7744 MB / 2.036 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.41e-07/5.725, allocations: 0 / 2.036 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002253/5.728, allocations: 0.5733 MB / 2.037 GB, free: 63.66 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.007321/5.735, allocations: 3.782 MB / 2.041 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003239/5.738, allocations: 1.437 MB / 2.042 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/5.738, allocations: 2.281 kB / 2.042 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001739/5.74, allocations: 0.8293 MB / 2.043 GB, free: 62.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004284/5.744, allocations: 0.7119 MB / 2.043 GB, free: 62.49 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006817/5.751, allocations: 2.781 MB / 2.046 GB, free: 61.93 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009757/5.752, allocations: 1.197 MB / 2.047 GB, free: 61.22 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002256/5.754, allocations: 476 kB / 2.048 GB, free: 61.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009691/5.755, allocations: 453.5 kB / 2.048 GB, free: 61.19 MB / 0.5261 GB Notification: Performance of SimCode: time 1.483e-06/5.755, allocations: 2.812 kB / 2.048 GB, free: 61.19 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/5.869, allocations: 63.59 MB / 2.11 GB, free: 20.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002113/5.869, allocations: 259.7 kB / 2.111 GB, free: 20.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.205/10.07, allocations: 0 / 2.111 GB, free: 20.34 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