Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 98.27 kB / 296.7 MB, free: 6.527 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3673/0.3673, allocations: 44.83 MB / 392.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 465.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3889, allocations: 62 MB / 0.5152 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5183/0.9073, allocations: 175.5 MB / 0.6866 GB, free: 1.734 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.008587/0.9159, allocations: 6.707 MB / 0.6931 GB, free: 1.652 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009058/0.9168, allocations: 27.38 kB / 0.6931 GB, free: 1.652 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.918, allocations: 391.3 kB / 0.6935 GB, free: 1.641 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004282/0.9224, allocations: 1.615 MB / 0.6951 GB, free: 1.562 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003636/0.926, allocations: 1.392 MB / 0.6965 GB, free: 1.5 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.004153/0.9302, allocations: 3.249 MB / 0.6996 GB, free: 1.5 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.9315, allocations: 0.6543 MB / 0.7003 GB, free: 1.434 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004297/0.9358, allocations: 1.694 MB / 0.7019 GB, free: 1.395 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00376/0.9395, allocations: 1.699 MB / 0.7036 GB, free: 1.363 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002935/0.9399, allocations: 58.56 kB / 0.7036 GB, free: 1.363 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003921/0.9438, allocations: 1.835 MB / 0.7054 GB, free: 1.344 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008653/0.9447, allocations: 0.6496 MB / 0.7061 GB, free: 1.34 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.9459, allocations: 0.7014 MB / 0.7067 GB, free: 1.34 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005086/0.951, allocations: 2.737 MB / 0.7094 GB, free: 1.219 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.951, allocations: 0.8438 kB / 0.7094 GB, free: 1.219 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.951, allocations: 0 / 0.7094 GB, free: 1.219 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.951, allocations: 0 / 0.7094 GB, free: 1.219 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.004833/0.9559, allocations: 1.716 MB / 0.7111 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.9559, allocations: 8.469 kB / 0.7111 GB, free: 16.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/0.9575, allocations: 312.7 kB / 0.7114 GB, free: 16.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.9593, allocations: 0.7408 MB / 0.7121 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.9594, allocations: 138.9 kB / 0.7123 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.9596, allocations: 105 kB / 0.7124 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.9624, allocations: 1.851 MB / 0.7142 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.9625, allocations: 6.812 kB / 0.7142 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.9626, allocations: 47.7 kB / 0.7142 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.036e-05/0.9627, allocations: 91.16 kB / 0.7143 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.9652, allocations: 1.698 MB / 0.716 GB, free: 15.79 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.01059/0.9758, allocations: 6.951 MB / 0.7228 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.9771, allocations: 0.8838 MB / 0.7236 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005972/0.9777, allocations: 454.2 kB / 0.7241 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.9778, allocations: 109.1 kB / 0.7242 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.9779, allocations: 48.77 kB / 0.7242 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=60): time 2.614e-06/0.9779, allocations: 0 / 0.7242 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=72): time 0.01108/0.989, allocations: 4.232 MB / 0.7283 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.9891, allocations: 116.1 kB / 0.7284 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.9907, allocations: 1.101 MB / 0.7295 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.9908, allocations: 46.77 kB / 0.7296 GB, free: 10.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.9913, allocations: 0.5222 MB / 0.7301 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.9915, allocations: 260 kB / 0.7303 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004636/0.992, allocations: 209.3 kB / 0.7305 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9921, allocations: 345.7 kB / 0.7309 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008642/0.993, allocations: 0.5927 MB / 0.7314 GB, free: 9.914 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.9941, allocations: 0.8676 MB / 0.7323 GB, free: 9.484 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.9962, allocations: 1.45 MB / 0.7337 GB, free: 9.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.9962, allocations: 6.625 kB / 0.7337 GB, free: 9.016 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003491/0.9997, allocations: 2.007 MB / 0.7357 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.9998, allocations: 9.531 kB / 0.7357 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.9998, allocations: 10.78 kB / 0.7357 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004698/1.004, allocations: 1.349 MB / 0.737 GB, free: 8.305 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006586/1.005, allocations: 142.7 kB / 0.7371 GB, free: 8.289 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/1.008, allocations: 1.925 MB / 0.739 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/1.01, allocations: 118.4 kB / 0.7391 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/1.01, allocations: 67.45 kB / 0.7392 GB, free: 7.477 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.0009629/1.011, allocations: 395 kB / 0.7396 GB, free: 7.254 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/1.011, allocations: 116.2 kB / 0.7397 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002626/1.014, allocations: 1.507 MB / 0.7411 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.014, allocations: 8 kB / 0.7412 GB, free: 6.094 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.014, allocations: 0 / 0.7412 GB, free: 6.094 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/1.014, allocations: 3.984 kB / 0.7412 GB, free: 6.09 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004364/1.018, allocations: 2.684 MB / 0.7438 GB, free: 4.168 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.018, allocations: 0 / 0.7438 GB, free: 4.168 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/1.02, allocations: 328.1 kB / 0.7441 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/1.02, allocations: 74.78 kB / 0.7442 GB, free: 3.801 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.178e-05/1.02, allocations: 39.98 kB / 0.7442 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/1.022, allocations: 2.829 MB / 0.747 GB, free: 0.875 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/1.022, allocations: 2.906 kB / 0.747 GB, free: 0.875 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.007811/1.03, allocations: 4.143 MB / 0.751 GB, free: 12.83 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.