Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, 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.282/1.282, allocations: 222.9 MB / 241.6 MB, free: 11 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.001056/0.001056, allocations: 103.2 kB / 291.9 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.3486/0.3486, allocations: 44.13 MB / 386.1 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 51.92 kB / 457.7 MB, free: 2.297 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3839, allocations: 60.8 MB / 0.5064 GB, free: 38.41 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5006/0.8846, allocations: 175.6 MB / 0.6779 GB, free: 1.801 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.8953, allocations: 6.689 MB / 0.6844 GB, free: 1.758 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008891/0.8963, allocations: 27.84 kB / 0.6845 GB, free: 1.758 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.8976, allocations: 381.9 kB / 0.6848 GB, free: 1.75 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004799/0.9024, allocations: 1.598 MB / 0.6864 GB, free: 1.672 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004202/0.9067, allocations: 1.359 MB / 0.6877 GB, free: 1.609 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003732/0.9104, allocations: 3.135 MB / 0.6908 GB, free: 1.609 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008227/0.9112, allocations: 481.1 kB / 0.6912 GB, free: 1.574 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003876/0.9151, allocations: 1.619 MB / 0.6928 GB, free: 1.539 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.9178, allocations: 1.536 MB / 0.6943 GB, free: 1.5 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.9179, allocations: 37.12 kB / 0.6943 GB, free: 1.5 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002819/0.9208, allocations: 1.797 MB / 0.6961 GB, free: 1.484 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003611/0.9211, allocations: 414.3 kB / 0.6965 GB, free: 1.484 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006237/0.9218, allocations: 0.5168 MB / 0.697 GB, free: 1.484 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00289/0.9247, allocations: 2.195 MB / 0.6991 GB, free: 1.379 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.9247, allocations: 0.75 kB / 0.6991 GB, free: 1.379 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.9247, allocations: 2.906 kB / 0.6991 GB, free: 1.379 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.9247, allocations: 2.672 kB / 0.6991 GB, free: 1.379 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002912/0.9276, allocations: 1.446 MB / 0.7006 GB, free: 16.67 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.9277, allocations: 14 kB / 0.7006 GB, free: 16.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.929, allocations: 276.6 kB / 0.7008 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.9302, allocations: 0.6074 MB / 0.7014 GB, free: 16.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.9303, allocations: 114.1 kB / 0.7015 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.9305, allocations: 63.72 kB / 0.7016 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/0.9325, allocations: 1.27 MB / 0.7028 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.9325, allocations: 2.219 kB / 0.7028 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.9326, allocations: 34.59 kB / 0.7029 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.9327, allocations: 86.77 kB / 0.703 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.9345, allocations: 1.05 MB / 0.704 GB, free: 16.04 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.006869/0.9414, allocations: 4.943 MB / 0.7088 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.942, allocations: 306.5 kB / 0.7091 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.9422, allocations: 144.6 kB / 0.7092 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.9423, allocations: 98.14 kB / 0.7093 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.9424, allocations: 39.91 kB / 0.7094 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 2.345e-06/0.9424, allocations: 0 / 0.7094 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.006702/0.9491, allocations: 1.816 MB / 0.7111 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.9492, allocations: 135.2 kB / 0.7113 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.9503, allocations: 0.9367 MB / 0.7122 GB, free: 12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.9504, allocations: 31.98 kB / 0.7122 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003695/0.9508, allocations: 0.5666 MB / 0.7128 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.9509, allocations: 132.4 kB / 0.7129 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003287/0.9512, allocations: 223 kB / 0.7131 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000209/0.9515, allocations: 400.5 kB / 0.7135 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/0.952, allocations: 277.7 kB / 0.7138 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008712/0.9528, allocations: 0.8625 MB / 0.7146 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.954, allocations: 1.183 MB / 0.7158 GB, free: 9.711 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.9541, allocations: 8 kB / 0.7158 GB, free: 9.711 MB / 0.4948 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001881/0.9559, allocations: 1.237 MB / 0.717 GB, free: 9.605 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.956, allocations: 15.03 kB / 0.717 GB, free: 9.605 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.956, allocations: 19.48 kB / 0.717 GB, free: 9.605 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.9573, allocations: 306 kB / 0.7173 GB, free: 9.578 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.9578, allocations: 203.5 kB / 0.7175 GB, free: 9.578 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.9589, allocations: 0.9083 MB / 0.7184 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008582/0.9597, allocations: 65.92 kB / 0.7184 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.953e-05/0.9598, allocations: 73.17 kB / 0.7185 GB, free: 9.039 MB / 0.4948 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.0004319/0.9602, allocations: 345.1 kB / 0.7188 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.9604, allocations: 95.86 kB / 0.7189 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009451/0.9613, allocations: 0.5176 MB / 0.7194 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.9614, allocations: 7.531 kB / 0.7194 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.9614, allocations: 1.781 kB / 0.7194 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.9614, allocations: 1.875 kB / 0.7194 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.9629, allocations: 1.129 MB / 0.7205 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.963, allocations: 0 / 0.7205 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008841/0.9639, allocations: 182.4 kB / 0.7207 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-05/0.9639, allocations: 25.61 kB / 0.7207 GB, free: 8.445 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.964, allocations: 13.05 kB / 0.7208 GB, free: 8.445 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/0.9657, allocations: 2.68 MB / 0.7234 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.9657, allocations: 3.984 kB / 0.7234 GB, free: 5.859 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.SimpleNaturalGasFixedComposition.shortPipe.Medium.T_hX.f_nonlinear(#(volume.ports[2].h_outflow), #({0.92, 0.048, 0.005, 0.002, 0.015, 0.01}), #(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.002385/0.9681, allocations: 1.486 MB / 0.7248 GB, free: 5.391 MB / 0.4948 GB Error: post-optimization module symbolicJacobian (simulation) failed.