Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001301/0.001301, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001348, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2377/0.2377, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 82.58 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1282, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4521/0.5803, allocations: 180.2 MB / 0.6449 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.5923, allocations: 6.512 MB / 0.6513 GB, free: 8.449 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.5937, allocations: 19.88 kB / 0.6513 GB, free: 8.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.5958, allocations: 413.6 kB / 0.6517 GB, free: 8.023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.601, allocations: 1.748 MB / 0.6534 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004211/0.6052, allocations: 1.482 MB / 0.6549 GB, free: 4.797 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/0.6081, allocations: 2.111 MB / 0.6569 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008156/0.6089, allocations: 0.541 MB / 0.6574 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003574/0.6125, allocations: 1.745 MB / 0.6592 GB, free: 396 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002976/0.6155, allocations: 1.5 MB / 0.6606 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.6157, allocations: 79.94 kB / 0.6607 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003044/0.6188, allocations: 1.379 MB / 0.662 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005037/0.6193, allocations: 438.9 kB / 0.6625 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007537/0.6201, allocations: 0.564 MB / 0.663 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003265/0.6233, allocations: 2.092 MB / 0.6651 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.6234, allocations: 0 / 0.6651 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.804e-06/0.6234, allocations: 0 / 0.6651 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.681e-05/0.6234, allocations: 0 / 0.6651 GB, free: 10.33 MB / 0.4981 GB 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.003647/0.6271, allocations: 1.459 MB / 0.6665 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.6271, allocations: 8.031 kB / 0.6665 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002257/0.6274, allocations: 134.6 kB / 0.6666 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001542/0.6289, allocations: 286.6 kB / 0.6669 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.6302, allocations: 0.609 MB / 0.6675 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.6304, allocations: 112.7 kB / 0.6676 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.6305, allocations: 63.98 kB / 0.6677 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.6328, allocations: 1.272 MB / 0.6689 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.039e-05/0.6329, allocations: 7.922 kB / 0.6689 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.633, allocations: 32 kB / 0.6689 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/0.6331, allocations: 81.27 kB / 0.669 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.6349, allocations: 1.047 MB / 0.67 GB, free: 5.055 MB / 0.4981 GB 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.008014/0.643, allocations: 4.928 MB / 0.6748 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006237/0.6436, allocations: 306.5 kB / 0.6751 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002791/0.6439, allocations: 144.8 kB / 0.6753 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.6441, allocations: 97.09 kB / 0.6754 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.492e-05/0.6442, allocations: 38.56 kB / 0.6754 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=28): time 3.346e-06/0.6442, allocations: 0 / 0.6754 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.007042/0.6512, allocations: 1.827 MB / 0.6772 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/0.6513, allocations: 140.5 kB / 0.6773 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.6527, allocations: 0.9349 MB / 0.6782 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.6527, allocations: 37.7 kB / 0.6783 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004875/0.6532, allocations: 0.5633 MB / 0.6788 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.6534, allocations: 134.3 kB / 0.679 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/0.6538, allocations: 218.6 kB / 0.6792 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002369/0.654, allocations: 398.7 kB / 0.6795 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.6545, allocations: 278.5 kB / 0.6798 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.6556, allocations: 0.8639 MB / 0.6806 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.6571, allocations: 1.179 MB / 0.6818 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.6571, allocations: 11.94 kB / 0.6818 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002135/0.6593, allocations: 1.228 MB / 0.683 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.6593, allocations: 16 kB / 0.683 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.6594, allocations: 20 kB / 0.683 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.6607, allocations: 299.2 kB / 0.6833 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000589/0.6613, allocations: 207.6 kB / 0.6835 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.6625, allocations: 0.9095 MB / 0.6844 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007782/0.6633, allocations: 43.98 kB / 0.6845 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.346e-05/0.6634, allocations: 72.06 kB / 0.6845 GB, free: 5.102 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0005247/0.664, allocations: 345.2 kB / 0.6849 GB, free: 4.754 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.6641, allocations: 94.95 kB / 0.6849 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.6654, allocations: 0.524 MB / 0.6855 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.6654, allocations: 4 kB / 0.6855 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.6654, allocations: 0 / 0.6855 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.6654, allocations: 0 / 0.6855 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.6675, allocations: 1.129 MB / 0.6866 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.6675, allocations: 0 / 0.6866 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.6685, allocations: 179.8 kB / 0.6867 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001455/0.6687, allocations: 32.81 kB / 0.6868 GB, free: 2.723 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.6687, allocations: 11.98 kB / 0.6868 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.6716, allocations: 2.87 MB / 0.6896 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.6716, allocations: 4.031 kB / 0.6896 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.673, allocations: 0.6952 MB / 0.6903 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.6735, allocations: 200 kB / 0.6905 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.6736, allocations: 8 kB / 0.6905 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.6741, allocations: 15.98 kB / 0.6905 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.6742, allocations: 23.97 kB / 0.6905 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.176e-05/0.6742, allocations: 27.98 kB / 0.6905 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001052/0.6753, allocations: 0.6243 MB / 0.6911 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6753, allocations: 4 kB / 0.6911 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001786/0.6771, allocations: 383.9 kB / 0.6915 GB, free: 13.54 MB / 0.5294 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003603/0.6807, allocations: 1.812 MB / 0.6933 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001741/0.6825, allocations: 0.7171 MB / 0.694 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.6825, allocations: 8.125 kB / 0.694 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.6835, allocations: 366.4 kB / 0.6943 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.6857, allocations: 432.7 kB / 0.6947 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.6987, allocations: 8.574 MB / 0.7031 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2005/0.8992, allocations: 1.027 MB / 0.7041 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001385/0.9006, allocations: 383 kB / 0.7045 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004261/0.9011, allocations: 320.1 kB / 0.7048 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of SimCode: time 8.51e-07/0.9011, allocations: 3.656 kB / 0.7048 GB, free: 196.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07574/0.9768, allocations: 30.12 MB / 0.7342 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.83, allocations: 16.52 kB / 0.7342 GB, free: 182.6 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1)