Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0008951/0.000895, allocations: 98.98 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009154/0.0009155, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.213/0.213, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.000291, allocations: 15.92 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1531, allocations: 63.46 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5305/0.6837, allocations: 161.8 MB / 0.6284 GB, free: 4.469 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009116/0.6929, allocations: 6.186 MB / 0.6344 GB, free: 14.27 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.694, allocations: 23.81 kB / 0.6345 GB, free: 14.25 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.6953, allocations: 306.1 kB / 0.6347 GB, free: 13.95 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004978/0.7003, allocations: 1.396 MB / 0.6361 GB, free: 12.54 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003804/0.7041, allocations: 1.05 MB / 0.6371 GB, free: 11.5 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003631/0.7077, allocations: 2.57 MB / 0.6396 GB, free: 8.926 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.7088, allocations: 455.2 kB / 0.6401 GB, free: 8.48 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004455/0.7133, allocations: 1.573 MB / 0.6416 GB, free: 6.902 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003325/0.7167, allocations: 1.586 MB / 0.6432 GB, free: 5.312 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002684/0.7169, allocations: 36 kB / 0.6432 GB, free: 5.277 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003556/0.7205, allocations: 1.221 MB / 0.6444 GB, free: 4.055 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005264/0.7211, allocations: 418.9 kB / 0.6448 GB, free: 3.645 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004099/0.7215, allocations: 233.2 kB / 0.645 GB, free: 3.41 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.7235, allocations: 1.543 MB / 0.6465 GB, free: 1.863 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.7235, allocations: 0 / 0.6465 GB, free: 1.863 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.7235, allocations: 0 / 0.6465 GB, free: 1.863 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.7235, allocations: 4 kB / 0.6465 GB, free: 1.859 MB / 478.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.002721/0.7263, allocations: 1.25 MB / 0.6477 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.7263, allocations: 8.031 kB / 0.6477 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.7265, allocations: 134.6 kB / 0.6479 GB, free: 416 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001295/0.7278, allocations: 290.5 kB / 0.6482 GB, free: 124 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.7288, allocations: 0.5861 MB / 0.6487 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.729, allocations: 120.7 kB / 0.6488 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.7291, allocations: 60 kB / 0.6489 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.7309, allocations: 1.263 MB / 0.6501 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.7309, allocations: 3.953 kB / 0.6501 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.7311, allocations: 39.97 kB / 0.6502 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-05/0.7312, allocations: 85.2 kB / 0.6503 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.7327, allocations: 1.059 MB / 0.6513 GB, free: 12.79 MB / 494.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.00712/0.7399, allocations: 4.826 MB / 0.656 GB, free: 7.668 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.7405, allocations: 297.7 kB / 0.6563 GB, free: 7.371 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.7407, allocations: 143.8 kB / 0.6564 GB, free: 7.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.7408, allocations: 109.1 kB / 0.6565 GB, free: 7.105 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.7409, allocations: 34.56 kB / 0.6566 GB, free: 7.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=28): time 2.395e-06/0.7409, allocations: 0 / 0.6566 GB, free: 7.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.005548/0.7465, allocations: 1.75 MB / 0.6583 GB, free: 5.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.7466, allocations: 132.5 kB / 0.6584 GB, free: 5.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.7478, allocations: 0.9311 MB / 0.6593 GB, free: 4.109 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.7478, allocations: 37.64 kB / 0.6593 GB, free: 4.066 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004412/0.7483, allocations: 0.5711 MB / 0.6599 GB, free: 3.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.7484, allocations: 126.3 kB / 0.66 GB, free: 3.359 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.7484, allocations: 24 kB / 0.66 GB, free: 3.336 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.7486, allocations: 398.7 kB / 0.6604 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.7491, allocations: 270.5 kB / 0.6607 GB, free: 2.672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009674/0.7501, allocations: 0.86 MB / 0.6615 GB, free: 1.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.7507, allocations: 460.2 kB / 0.662 GB, free: 1.078 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.7508, allocations: 4 kB / 0.662 GB, free: 1.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002046/0.7528, allocations: 1.224 MB / 0.6632 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.7528, allocations: 16 kB / 0.6632 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/0.7529, allocations: 20 kB / 0.6632 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.7542, allocations: 303.6 kB / 0.6635 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005701/0.7548, allocations: 203.7 kB / 0.6637 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.7559, allocations: 0.9133 MB / 0.6646 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008525/0.7568, allocations: 59.89 kB / 0.6646 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.87e-05/0.7569, allocations: 64 kB / 0.6647 GB, free: 14.25 MB / 0.4981 GB 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.0005403/0.7575, allocations: 361.7 kB / 0.665 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.7576, allocations: 86.97 kB / 0.6651 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.7588, allocations: 0.5159 MB / 0.6656 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.7588, allocations: 7.938 kB / 0.6656 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.7588, allocations: 0 / 0.6656 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.7588, allocations: 0 / 0.6656 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.7609, allocations: 1.121 MB / 0.6667 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.7609, allocations: 4.031 kB / 0.6667 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009417/0.7619, allocations: 187.8 kB / 0.6669 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.262e-05/0.762, allocations: 24.8 kB / 0.6669 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.762, allocations: 8 kB / 0.6669 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002509/0.7645, allocations: 2.676 MB / 0.6695 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.7645, allocations: 4.031 kB / 0.6696 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.7656, allocations: 0.6952 MB / 0.6702 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/0.7659, allocations: 207.9 kB / 0.6704 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.766, allocations: 8 kB / 0.6704 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004066/0.7664, allocations: 23.98 kB / 0.6705 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.7665, allocations: 35.95 kB / 0.6705 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.7666, allocations: 15.98 kB / 0.6705 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008817/0.7674, allocations: 0.6204 MB / 0.6711 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.8e-07/0.7674, allocations: 0 / 0.6711 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001722/0.7692, allocations: 387.9 kB / 0.6715 GB, free: 6.887 MB / 0.4981 GB 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.003111/0.7723, allocations: 1.698 MB / 0.6731 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.7738, allocations: 0.6671 MB / 0.6738 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7738, allocations: 4.188 kB / 0.6738 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008811/0.7747, allocations: 366.4 kB / 0.6741 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.7765, allocations: 416.6 kB / 0.6745 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008555/0.785, allocations: 5.626 MB / 0.68 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007788/0.7858, allocations: 1.036 MB / 0.6811 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001307/0.7872, allocations: 378.8 kB / 0.6814 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004794/0.7876, allocations: 323.3 kB / 0.6817 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.353e-06/0.7877, allocations: 0 / 0.6817 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.316/1.104, allocations: 28.81 MB / 0.7099 GB, free: 191.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/1.104, allocations: 305.7 kB / 0.7101 GB, free: 191.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.698/3.802, allocations: 6.219 kB / 0.7102 GB, free: 191.4 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat