Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 99.81 kB / 291.8 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3365/0.3365, allocations: 44.13 MB / 386.1 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.89 kB / 457.7 MB, free: 2.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3648, allocations: 60.81 MB / 0.5064 GB, free: 38.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.193/0.5578, allocations: 175.5 MB / 0.6778 GB, free: 100 kB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.3049/0.8628, allocations: 6.676 MB / 0.6843 GB, free: 1.723 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008115/0.8637, allocations: 27.66 kB / 0.6843 GB, free: 1.723 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.8647, allocations: 392.4 kB / 0.6847 GB, free: 1.711 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003629/0.8684, allocations: 1.607 MB / 0.6863 GB, free: 1.637 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003439/0.8718, allocations: 1.394 MB / 0.6876 GB, free: 1.578 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003212/0.8751, allocations: 3.233 MB / 0.6908 GB, free: 1.578 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.8761, allocations: 0.6672 MB / 0.6914 GB, free: 1.504 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003488/0.8796, allocations: 1.669 MB / 0.6931 GB, free: 1.465 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.8827, allocations: 1.659 MB / 0.6947 GB, free: 1.434 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.8829, allocations: 59.66 kB / 0.6947 GB, free: 1.434 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003458/0.8863, allocations: 1.829 MB / 0.6965 GB, free: 1.418 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006425/0.887, allocations: 0.6533 MB / 0.6972 GB, free: 1.414 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009463/0.888, allocations: 0.6986 MB / 0.6978 GB, free: 1.414 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004304/0.8923, allocations: 2.735 MB / 0.7005 GB, free: 1.289 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.8923, allocations: 0.9062 kB / 0.7005 GB, free: 1.289 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.8923, allocations: 0 / 0.7005 GB, free: 1.289 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.295e-05/0.8923, allocations: 0 / 0.7005 GB, free: 1.289 MB / 490.7 MB 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.004339/0.8967, allocations: 1.711 MB / 0.7022 GB, free: 16.51 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.8967, allocations: 12.78 kB / 0.7022 GB, free: 16.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/0.8983, allocations: 313.5 kB / 0.7025 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.9, allocations: 0.7429 MB / 0.7032 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.9002, allocations: 143.3 kB / 0.7034 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.9004, allocations: 99.62 kB / 0.7035 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00312/0.9035, allocations: 1.849 MB / 0.7053 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.9036, allocations: 9.438 kB / 0.7053 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.9037, allocations: 46.19 kB / 0.7053 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.9038, allocations: 98.81 kB / 0.7054 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.9067, allocations: 1.692 MB / 0.7071 GB, free: 15.86 MB / 0.4948 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.01073/0.9175, allocations: 6.973 MB / 0.7139 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.9187, allocations: 0.8735 MB / 0.7147 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005916/0.9193, allocations: 451.8 kB / 0.7152 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/0.9195, allocations: 109.7 kB / 0.7153 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.9195, allocations: 49.12 kB / 0.7153 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=60): time 2.525e-06/0.9196, allocations: 0 / 0.7153 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=72): time 0.01151/0.9311, allocations: 4.229 MB / 0.7194 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.9312, allocations: 115.2 kB / 0.7195 GB, free: 11.17 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.9326, allocations: 1.105 MB / 0.7206 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.9327, allocations: 44.7 kB / 0.7207 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.9331, allocations: 0.5227 MB / 0.7212 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.9333, allocations: 263.3 kB / 0.7214 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003524/0.9336, allocations: 210.8 kB / 0.7216 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.9338, allocations: 349.4 kB / 0.722 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008262/0.9346, allocations: 0.5817 MB / 0.7225 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.9356, allocations: 0.873 MB / 0.7234 GB, free: 9.938 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.9375, allocations: 1.451 MB / 0.7248 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.9375, allocations: 0 / 0.7248 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003228/0.9407, allocations: 2.011 MB / 0.7268 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.9408, allocations: 8.469 kB / 0.7268 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.9408, allocations: 8.219 kB / 0.7268 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004757/0.9456, allocations: 1.347 MB / 0.7281 GB, free: 9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.9463, allocations: 145.8 kB / 0.7282 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.9489, allocations: 1.927 MB / 0.7301 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.9503, allocations: 114.7 kB / 0.7302 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.9504, allocations: 71.28 kB / 0.7303 GB, free: 8.172 MB / 0.4948 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.0007349/0.9512, allocations: 396.6 kB / 0.7307 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.9514, allocations: 114.7 kB / 0.7308 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/0.954, allocations: 1.493 MB / 0.7322 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.954, allocations: 14.73 kB / 0.7322 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.954, allocations: 3.938 kB / 0.7323 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.954, allocations: 3.984 kB / 0.7323 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/0.9581, allocations: 2.694 MB / 0.7349 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.9581, allocations: 0 / 0.7349 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/0.9599, allocations: 328.7 kB / 0.7352 GB, free: 6.039 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.9601, allocations: 66.64 kB / 0.7353 GB, free: 5.984 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.093e-05/0.9602, allocations: 40.47 kB / 0.7353 GB, free: 5.961 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.9624, allocations: 2.838 MB / 0.7381 GB, free: 3.055 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9624, allocations: 0 / 0.7381 GB, free: 3.055 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "shortPipe.flowModel.states[1].T = Modelica.Math.Nonlinear.solveOneNonlinearEquation(function ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.shortPipe.Medium.T_hX.f_nonlinear(#(volume.ports[2].h_outflow), #({volume.medium.Xi[1], volume.medium.Xi[2], volume.medium.Xi[3], volume.medium.Xi[4], volume.medium.Xi[5], volume.medium.Xi[6]}), #(true), #(Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K), #(0.0)), 200.0, 6000.0, 1e-13)" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.9699, allocations: 4.131 MB / 0.7421 GB, free: 148 kB / 0.4948 GB Error: post-optimization module symbolicJacobian (simulation) failed.