Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 95.52 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 185.5 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2296/0.2296, allocations: 44.23 MB / 337.1 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 13.22 kB / 409.6 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 61.92 MB / 471.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4709/0.6121, allocations: 143.9 MB / 0.6011 GB, free: 1.766 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.6222, allocations: 6.55 MB / 0.6075 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.6233, allocations: 27.75 kB / 0.6075 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.6245, allocations: 322.4 kB / 0.6078 GB, free: 10.86 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004524/0.629, allocations: 1.273 MB / 0.609 GB, free: 9.586 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.6327, allocations: 1.07 MB / 0.6101 GB, free: 8.523 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.6349, allocations: 1.173 MB / 0.6112 GB, free: 7.348 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007313/0.6356, allocations: 472 kB / 0.6117 GB, free: 6.887 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002784/0.6384, allocations: 1.259 MB / 0.6129 GB, free: 5.625 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.6412, allocations: 1.329 MB / 0.6142 GB, free: 4.293 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.6414, allocations: 36 kB / 0.6142 GB, free: 4.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.6441, allocations: 1.018 MB / 0.6152 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004564/0.6446, allocations: 371 kB / 0.6156 GB, free: 2.875 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003462/0.6449, allocations: 229.3 kB / 0.6158 GB, free: 2.645 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002372/0.6473, allocations: 1.482 MB / 0.6173 GB, free: 1.164 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6473, allocations: 0 / 0.6173 GB, free: 1.164 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.6473, allocations: 0 / 0.6173 GB, free: 1.164 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.6473, allocations: 0 / 0.6173 GB, free: 1.164 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002889/0.6502, allocations: 1.262 MB / 0.6185 GB, free: 15.85 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.6503, allocations: 8.562 kB / 0.6185 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.6505, allocations: 126.7 kB / 0.6186 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.6519, allocations: 298.5 kB / 0.6189 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.6532, allocations: 0.5823 MB / 0.6195 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.6533, allocations: 120.7 kB / 0.6196 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.6534, allocations: 56 kB / 0.6196 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.6553, allocations: 1.259 MB / 0.6209 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.6553, allocations: 11.94 kB / 0.6209 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.6554, allocations: 39.98 kB / 0.6209 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.6556, allocations: 77.2 kB / 0.621 GB, free: 13.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.6572, allocations: 1.067 MB / 0.622 GB, free: 12.09 MB / 462.1 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.007074/0.6642, allocations: 4.832 MB / 0.6268 GB, free: 6.953 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004845/0.6647, allocations: 283.3 kB / 0.627 GB, free: 6.668 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.6649, allocations: 97.08 kB / 0.6271 GB, free: 6.555 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.6649, allocations: 34.56 kB / 0.6271 GB, free: 6.512 MB / 462.1 MB Notification: Performance of pre-optimization done (n=28): time 2.405e-06/0.6649, allocations: 4 kB / 0.6272 GB, free: 6.508 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.00639/0.6713, allocations: 1.755 MB / 0.6289 GB, free: 4.668 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.6715, allocations: 132.5 kB / 0.629 GB, free: 4.508 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.6727, allocations: 0.931 MB / 0.6299 GB, free: 3.551 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.6728, allocations: 33.7 kB / 0.6299 GB, free: 3.512 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004597/0.6733, allocations: 0.5633 MB / 0.6305 GB, free: 2.938 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.6734, allocations: 130.3 kB / 0.6306 GB, free: 2.809 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.6735, allocations: 20 kB / 0.6306 GB, free: 2.789 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.6737, allocations: 402.7 kB / 0.631 GB, free: 2.387 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.6741, allocations: 270.4 kB / 0.6313 GB, free: 2.125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008724/0.675, allocations: 0.86 MB / 0.6321 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/0.6756, allocations: 460.3 kB / 0.6325 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.6756, allocations: 4 kB / 0.6326 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001991/0.6776, allocations: 1.231 MB / 0.6338 GB, free: 15.28 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.6777, allocations: 16 kB / 0.6338 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.6777, allocations: 16.84 kB / 0.6338 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.679, allocations: 310.9 kB / 0.6341 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/0.6796, allocations: 203.7 kB / 0.6343 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.6807, allocations: 0.9074 MB / 0.6352 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009906/0.6817, allocations: 64.03 kB / 0.6352 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.99e-05/0.6819, allocations: 68 kB / 0.6353 GB, free: 13.69 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005609/0.6824, allocations: 345.1 kB / 0.6356 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.6826, allocations: 98.83 kB / 0.6357 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009989/0.6836, allocations: 0.5159 MB / 0.6362 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.6836, allocations: 11.98 kB / 0.6362 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6836, allocations: 0 / 0.6362 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.6836, allocations: 0 / 0.6362 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.6853, allocations: 1.113 MB / 0.6373 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.6854, allocations: 0 / 0.6373 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009883/0.6864, allocations: 195.7 kB / 0.6375 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.046e-05/0.6865, allocations: 20.84 kB / 0.6375 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.6865, allocations: 8.562 kB / 0.6375 GB, free: 11.31 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001995/0.6885, allocations: 2.703 MB / 0.6402 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6885, allocations: 0 / 0.6402 GB, free: 8.336 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009994/0.6895, allocations: 0.7048 MB / 0.6409 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.6899, allocations: 216 kB / 0.6411 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.69, allocations: 8 kB / 0.6411 GB, free: 7.363 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.6905, allocations: 19.98 kB / 0.6411 GB, free: 7.344 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.6905, allocations: 23.97 kB / 0.6411 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.6906, allocations: 23.98 kB / 0.6411 GB, free: 7.297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008045/0.6914, allocations: 0.6204 MB / 0.6417 GB, free: 6.664 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6914, allocations: 0 / 0.6417 GB, free: 6.664 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001464/0.6929, allocations: 379.9 kB / 0.6421 GB, free: 6.293 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (33): * Single equations (assignments): 31 * 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.002905/0.6958, allocations: 1.768 MB / 0.6438 GB, free: 4.496 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.6971, allocations: 0.6667 MB / 0.6445 GB, free: 3.832 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6971, allocations: 0 / 0.6445 GB, free: 3.832 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008862/0.698, allocations: 370.4 kB / 0.6448 GB, free: 3.457 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.6998, allocations: 403 kB / 0.6452 GB, free: 3.066 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.7141, allocations: 19.01 MB / 0.6638 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007633/0.7149, allocations: 1.052 MB / 0.6648 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001487/0.7164, allocations: 387.1 kB / 0.6652 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.7169, allocations: 323.3 kB / 0.6655 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of SimCode: time 1.943e-06/0.7169, allocations: 0 / 0.6655 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05455/0.7715, allocations: 29.34 MB / 0.6941 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003328/0.7719, allocations: 313.5 kB / 0.6944 GB, free: 460 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.326, allocations: 0 / 0.6944 GB, free: 460 kB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat