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.SimpleNaturalGas.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.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002004, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2316/0.2316, allocations: 46.12 MB / 344.2 MB, free: 11.56 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.002164/0.002164, allocations: 81.52 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1333, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4755/0.6088, allocations: 180 MB / 0.6448 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.009352/0.6182, allocations: 6.497 MB / 0.6511 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006163/0.6189, allocations: 19.88 kB / 0.6512 GB, free: 8.582 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.6201, allocations: 441.5 kB / 0.6516 GB, free: 8.148 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004025/0.6241, allocations: 1.756 MB / 0.6533 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003813/0.6279, allocations: 1.514 MB / 0.6548 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00306/0.631, allocations: 2.234 MB / 0.6569 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002001/0.633, allocations: 0.7572 MB / 0.6577 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006118/0.6392, allocations: 1.799 MB / 0.6594 GB, free: 84 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004603/0.6438, allocations: 1.609 MB / 0.661 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004228/0.6443, allocations: 104 kB / 0.6611 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004791/0.6491, allocations: 1.415 MB / 0.6625 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.6503, allocations: 0.6936 MB / 0.6632 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.6519, allocations: 0.751 MB / 0.6639 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.6582, allocations: 2.653 MB / 0.6665 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.6583, allocations: 0 / 0.6665 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.49e-06/0.6583, allocations: 0 / 0.6665 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.218e-05/0.6583, allocations: 7.875 kB / 0.6665 GB, free: 8.832 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005786/0.6641, allocations: 1.712 MB / 0.6682 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.6642, allocations: 12.03 kB / 0.6682 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003684/0.6646, allocations: 172.9 kB / 0.6684 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002514/0.6671, allocations: 310.2 kB / 0.6686 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.6691, allocations: 0.7493 MB / 0.6694 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.6694, allocations: 134.6 kB / 0.6695 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000314/0.6697, allocations: 108 kB / 0.6696 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004994/0.6747, allocations: 1.845 MB / 0.6714 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.085e-05/0.6748, allocations: 7.906 kB / 0.6714 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/0.6751, allocations: 44 kB / 0.6715 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001907/0.6753, allocations: 97.89 kB / 0.6716 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004449/0.6797, allocations: 1.698 MB / 0.6732 GB, free: 1.77 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.0157/0.6955, allocations: 6.977 MB / 0.68 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.6977, allocations: 0.8807 MB / 0.6809 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.6988, allocations: 458.2 kB / 0.6813 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002191/0.699, allocations: 101.7 kB / 0.6814 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.928e-05/0.6991, allocations: 51.06 kB / 0.6815 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 4.438e-06/0.6991, allocations: 0 / 0.6815 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01756/0.7167, allocations: 4.233 MB / 0.6856 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.7168, allocations: 111.5 kB / 0.6857 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002096/0.7189, allocations: 1.12 MB / 0.6868 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.7191, allocations: 45.7 kB / 0.6868 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006496/0.7198, allocations: 0.5183 MB / 0.6874 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.7202, allocations: 268.3 kB / 0.6876 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005773/0.7208, allocations: 214.5 kB / 0.6878 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002208/0.721, allocations: 345.9 kB / 0.6881 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.7225, allocations: 0.5797 MB / 0.6887 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.7244, allocations: 0.8721 MB / 0.6896 GB, free: 268 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/0.7277, allocations: 1.454 MB / 0.691 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.7277, allocations: 0 / 0.691 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005244/0.733, allocations: 2.001 MB / 0.6929 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.733, allocations: 8 kB / 0.6929 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.7331, allocations: 11.98 kB / 0.693 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007607/0.7407, allocations: 1.355 MB / 0.6943 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.7418, allocations: 139.8 kB / 0.6944 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005067/0.7469, allocations: 1.932 MB / 0.6963 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.7487, allocations: 43.97 kB / 0.6963 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.7491, allocations: 68.11 kB / 0.6964 GB, free: 9.105 MB / 0.5294 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 () * Number of clocked 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 (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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0012/0.7503, allocations: 401.3 kB / 0.6968 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.7508, allocations: 122.6 kB / 0.6969 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/0.7551, allocations: 1.494 MB / 0.6984 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.7551, allocations: 11.94 kB / 0.6984 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.7552, allocations: 8 kB / 0.6984 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.7552, allocations: 3.984 kB / 0.6984 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007153/0.7624, allocations: 2.692 MB / 0.701 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.7624, allocations: 32 / 0.701 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/0.7654, allocations: 323.6 kB / 0.7013 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.7657, allocations: 72.62 kB / 0.7014 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.7658, allocations: 39.98 kB / 0.7014 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003904/0.7697, allocations: 3.021 MB / 0.7044 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7698, allocations: 160 / 0.7044 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2755/1.045, allocations: 1.903 MB / 0.7062 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/1.046, allocations: 329.9 kB / 0.7066 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/1.047, allocations: 28.19 kB / 0.7066 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/1.048, allocations: 48.34 kB / 0.7066 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/1.048, allocations: 69.23 kB / 0.7067 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/1.048, allocations: 61.97 kB / 0.7068 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001375/1.049, allocations: 0.7941 MB / 0.7075 GB, free: 197.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.049, allocations: 0 / 0.7075 GB, free: 197.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001808/1.051, allocations: 491.9 kB / 0.708 GB, free: 197.3 MB / 0.5294 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 () * Number of clocked 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 (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.006491/1.058, allocations: 3.124 MB / 0.7111 GB, free: 196 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004323/1.062, allocations: 1.811 MB / 0.7128 GB, free: 195.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/1.062, allocations: 3.469 kB / 0.7128 GB, free: 195.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002141/1.064, allocations: 0.8609 MB / 0.7137 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/1.069, allocations: 0.7791 MB / 0.7144 GB, free: 195 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/1.091, allocations: 13.67 MB / 0.7278 GB, free: 188.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/1.092, allocations: 1.178 MB / 0.7289 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001795/1.093, allocations: 485.1 kB / 0.7294 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/1.094, allocations: 443.8 kB / 0.7298 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/1.094, allocations: 0 / 0.7298 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/1.2, allocations: 49.89 MB / 0.7785 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/14.49, allocations: 11.98 kB / 0.7785 GB, free: 139.5 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)