Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.002704/0.002711, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001706/0.001706, allocations: 98.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3067/0.3067, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.00049, allocations: 8 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.587/0.7182, allocations: 144 MB / 0.6194 GB, free: 10.73 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01944/0.7377, allocations: 8.4 MB / 0.6276 GB, free: 2.316 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.7388, allocations: 23.81 kB / 0.6276 GB, free: 2.293 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.7407, allocations: 318.4 kB / 0.6279 GB, free: 1.98 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007054/0.7478, allocations: 1.494 MB / 0.6294 GB, free: 496 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00721/0.755, allocations: 1.229 MB / 0.6306 GB, free: 15.25 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003324/0.7584, allocations: 1.165 MB / 0.6317 GB, free: 14.09 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.7597, allocations: 473.9 kB / 0.6322 GB, free: 13.62 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004677/0.7645, allocations: 1.263 MB / 0.6334 GB, free: 12.36 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005044/0.7696, allocations: 1.329 MB / 0.6347 GB, free: 11.03 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003249/0.7699, allocations: 39.94 kB / 0.6348 GB, free: 10.99 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004893/0.7749, allocations: 1.209 MB / 0.6359 GB, free: 9.773 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008755/0.7758, allocations: 371 kB / 0.6363 GB, free: 9.41 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.7764, allocations: 233.2 kB / 0.6365 GB, free: 9.176 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004183/0.7806, allocations: 1.558 MB / 0.638 GB, free: 7.617 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.7806, allocations: 4 kB / 0.638 GB, free: 7.613 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.7806, allocations: 0 / 0.638 GB, free: 7.613 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.063e-05/0.7807, allocations: 0 / 0.638 GB, free: 7.613 MB / 442.7 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.004642/0.7854, allocations: 1.224 MB / 0.6392 GB, free: 6.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.7855, allocations: 16.02 kB / 0.6393 GB, free: 6.324 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005387/0.786, allocations: 130.7 kB / 0.6394 GB, free: 6.188 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.7887, allocations: 290.6 kB / 0.6397 GB, free: 5.902 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.7907, allocations: 0.5861 MB / 0.6402 GB, free: 5.277 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.791, allocations: 120.7 kB / 0.6403 GB, free: 5.148 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000315/0.7914, allocations: 64 kB / 0.6404 GB, free: 5.086 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003879/0.7953, allocations: 1.259 MB / 0.6416 GB, free: 3.762 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.7954, allocations: 0 / 0.6416 GB, free: 3.762 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.7956, allocations: 35.98 kB / 0.6417 GB, free: 3.727 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001879/0.7958, allocations: 89.14 kB / 0.6418 GB, free: 3.641 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003584/0.7994, allocations: 1.059 MB / 0.6428 GB, free: 2.578 MB / 442.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.01286/0.8123, allocations: 4.872 MB / 0.6475 GB, free: 13.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008832/0.8133, allocations: 274.5 kB / 0.6478 GB, free: 13.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003202/0.8136, allocations: 125.7 kB / 0.6479 GB, free: 12.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.8137, allocations: 30.56 kB / 0.648 GB, free: 12.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=28): time 3.617e-06/0.8137, allocations: 0 / 0.648 GB, free: 12.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.01108/0.8248, allocations: 1.755 MB / 0.6497 GB, free: 11.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.825, allocations: 132.5 kB / 0.6498 GB, free: 10.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00199/0.827, allocations: 0.931 MB / 0.6507 GB, free: 9.988 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.8272, allocations: 33.7 kB / 0.6507 GB, free: 9.949 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006193/0.8278, allocations: 0.5814 MB / 0.6513 GB, free: 9.359 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.828, allocations: 134.3 kB / 0.6514 GB, free: 9.227 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/0.8281, allocations: 24 kB / 0.6515 GB, free: 9.203 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.8283, allocations: 350.8 kB / 0.6518 GB, free: 8.852 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008467/0.8292, allocations: 270.5 kB / 0.6521 GB, free: 8.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.8306, allocations: 0.86 MB / 0.6529 GB, free: 7.445 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.8319, allocations: 455.4 kB / 0.6533 GB, free: 7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.469e-05/0.8319, allocations: 4 kB / 0.6533 GB, free: 6.996 MB / 458.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003553/0.8355, allocations: 1.186 MB / 0.6545 GB, free: 5.801 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.8356, allocations: 12 kB / 0.6545 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.944e-05/0.8356, allocations: 23.98 kB / 0.6545 GB, free: 5.766 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/0.8379, allocations: 293.1 kB / 0.6548 GB, free: 5.477 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.8392, allocations: 199.7 kB / 0.655 GB, free: 5.281 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.8413, allocations: 0.9228 MB / 0.6559 GB, free: 4.332 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.8428, allocations: 59.98 kB / 0.656 GB, free: 4.273 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.843, allocations: 68 kB / 0.656 GB, free: 4.207 MB / 458.7 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.000785/0.8438, allocations: 345.6 kB / 0.6563 GB, free: 3.859 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.8441, allocations: 94.88 kB / 0.6564 GB, free: 3.766 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.8458, allocations: 480.7 kB / 0.6569 GB, free: 3.289 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.8459, allocations: 11.97 kB / 0.6569 GB, free: 3.277 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.8459, allocations: 0 / 0.6569 GB, free: 3.277 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.8459, allocations: 4 kB / 0.6569 GB, free: 3.273 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.849, allocations: 1.129 MB / 0.658 GB, free: 2.082 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.8491, allocations: 0 / 0.658 GB, free: 2.082 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002004/0.8511, allocations: 175.8 kB / 0.6582 GB, free: 1.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.8513, allocations: 29.64 kB / 0.6582 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.8514, allocations: 8 kB / 0.6582 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003234/0.8546, allocations: 2.692 MB / 0.6608 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.8547, allocations: 0 / 0.6608 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.8568, allocations: 0.7088 MB / 0.6615 GB, free: 14.17 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000629/0.8574, allocations: 200 kB / 0.6617 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.8577, allocations: 7.953 kB / 0.6617 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008677/0.8585, allocations: 43.88 kB / 0.6618 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.8587, allocations: 19.91 kB / 0.6618 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-05/0.8588, allocations: 23.98 kB / 0.6618 GB, free: 13.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00139/0.8602, allocations: 0.6126 MB / 0.6624 GB, free: 13.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.8602, allocations: 0 / 0.6624 GB, free: 13.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002327/0.8626, allocations: 419.9 kB / 0.6628 GB, free: 12.83 MB / 474.7 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.005575/0.8682, allocations: 1.865 MB / 0.6646 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.8707, allocations: 0.6656 MB / 0.6653 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.8708, allocations: 0 / 0.6653 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.8725, allocations: 367.8 kB / 0.6656 GB, free: 9.898 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00357/0.8761, allocations: 395.3 kB / 0.666 GB, free: 9.508 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02184/0.898, allocations: 19.09 MB / 0.6847 GB, free: 5.848 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.8991, allocations: 1.052 MB / 0.6857 GB, free: 4.766 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008603/0.9, allocations: 323.3 kB / 0.686 GB, free: 4.449 MB / 490.7 MB Notification: Performance of SimCode: time 1.603e-06/0.9, allocations: 0 / 0.686 GB, free: 4.449 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.093/4.993, allocations: 27.56 MB / 0.7129 GB, free: 183.2 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat