Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.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.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume1.mC_scaled.1.|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p|volume2.mC_scaled.1.|volume2.medium.T|volume2.medium.Xi.1.|volume2.medium.p|volume3.mC_scaled.1.|volume3.medium.T|volume3.medium.Xi.1.|volume3.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001974/0.001974, 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.495/1.495, 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.001038/0.001038, allocations: 104.6 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.3782/0.3782, allocations: 44.12 MB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.84 kB / 457.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.448/0.4493, allocations: 60.8 MB / 0.5064 GB, free: 38.53 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances): time 0.7759/1.225, allocations: 333.9 MB / 0.8325 GB, free: 2.852 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.04942/1.275, allocations: 29.76 MB / 0.8616 GB, free: 5.004 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005388/1.28, allocations: 107.2 kB / 0.8617 GB, free: 4.898 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.005244/1.286, allocations: 1.189 MB / 0.8628 GB, free: 3.703 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.03057/1.316, allocations: 8.663 MB / 0.8713 GB, free: 11.01 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02088/1.337, allocations: 6.883 MB / 0.878 GB, free: 4.133 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.01756/1.355, allocations: 12.83 MB / 0.8905 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005293/1.36, allocations: 2.176 MB / 0.8927 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01852/1.379, allocations: 5.665 MB / 0.8982 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008175/1.387, allocations: 3.914 MB / 0.902 GB, free: 11.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.002159/1.389, allocations: 212 kB / 0.9022 GB, free: 11.26 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5481/1.937, allocations: 18.13 MB / 0.9199 GB, free: 17.57 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.004283/1.941, allocations: 1.63 MB / 0.9215 GB, free: 17.57 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.006809/1.948, allocations: 1.88 MB / 0.9234 GB, free: 17.57 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.04088/1.989, allocations: 13.76 MB / 0.9368 GB, free: 17.25 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/1.989, allocations: 2.25 kB / 0.9368 GB, free: 17.25 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.994e-06/1.989, allocations: 0 / 0.9368 GB, free: 17.25 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002749/1.99, allocations: 0.75 kB / 0.9368 GB, free: 17.25 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.0239/2.013, allocations: 5.877 MB / 0.9425 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/2.014, allocations: 17.03 kB / 0.9425 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002355/2.016, allocations: 396.6 kB / 0.9429 GB, free: 14.81 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005184/2.021, allocations: 1.921 MB / 0.9448 GB, free: 14.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/2.022, allocations: 0.4959 MB / 0.9453 GB, free: 14.01 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/2.023, allocations: 287.5 kB / 0.9456 GB, free: 14.01 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/2.033, allocations: 4.933 MB / 0.9504 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.896e-05/2.033, allocations: 12.56 kB / 0.9504 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004669/2.034, allocations: 121 kB / 0.9505 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003143/2.034, allocations: 279.8 kB / 0.9508 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/2.044, allocations: 5.063 MB / 0.9557 GB, free: 13.31 MB / 0.6042 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.03871/2.083, allocations: 21.81 MB / 0.977 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004784/2.088, allocations: 2.635 MB / 0.9796 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/2.091, allocations: 1.607 MB / 0.9812 GB, free: 17.62 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002907/2.093, allocations: 3.308 MB / 0.9844 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.511e-05/2.094, allocations: 68.44 kB / 0.9845 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 5.791e-06/2.094, allocations: 0 / 0.9845 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.05715/2.151, allocations: 15.34 MB / 0.9994 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/2.151, allocations: 241.6 kB / 0.9997 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004499/2.155, allocations: 2.491 MB / 1.002 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0006483/2.156, allocations: 82.33 kB / 1.002 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001057/2.157, allocations: 1.49 MB / 1.004 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00114/2.158, allocations: 0.9459 MB / 1.005 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002022/2.16, allocations: 0.8055 MB / 1.005 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001091/2.161, allocations: 309 kB / 1.006 GB, free: 9.828 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004089/2.165, allocations: 2.06 MB / 1.008 GB, free: 9.469 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005032/2.17, allocations: 3.296 MB / 1.011 GB, free: 7.57 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/2.182, allocations: 5.484 MB / 1.016 GB, free: 3.297 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.915e-05/2.182, allocations: 12 kB / 1.016 GB, free: 3.285 MB / 0.6198 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.01752/2.199, allocations: 6.263 MB / 1.022 GB, free: 14.97 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.000153/2.199, allocations: 132.8 kB / 1.022 GB, free: 14.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7e-05/2.2, allocations: 40 kB / 1.023 GB, free: 14.78 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004382/2.204, allocations: 0.9149 MB / 1.023 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004439/2.208, allocations: 0.8913 MB / 1.024 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00494/2.213, allocations: 2.753 MB / 1.027 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/2.218, allocations: 359 kB / 1.027 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/2.22, allocations: 239.7 kB / 1.028 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006615/2.227, allocations: 2.655 MB / 1.03 GB, free: 8.539 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005771/2.232, allocations: 3.26 MB / 1.033 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01031/2.243, allocations: 5.378 MB / 1.039 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.691e-05/2.243, allocations: 12 kB / 1.039 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=508) (initialization_lambda0): time 0.01816/2.261, allocations: 6.118 MB / 1.045 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.261, allocations: 138.9 kB / 1.045 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.503e-05/2.261, allocations: 40 kB / 1.045 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004229/2.266, allocations: 0.9169 MB / 1.046 GB, free: 9.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004207/2.27, allocations: 0.8905 MB / 1.046 GB, free: 8.648 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/2.275, allocations: 2.747 MB / 1.049 GB, free: 5.852 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005609/2.28, allocations: 359.5 kB / 1.05 GB, free: 5.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/2.282, allocations: 239.9 kB / 1.05 GB, free: 5.266 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (487): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,6), (2,6), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002133/2.284, allocations: 459.1 kB / 1.05 GB, free: 4.867 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001512/2.285, allocations: 300.3 kB / 1.05 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01553/2.301, allocations: 6.347 MB / 1.057 GB, free: 14.24 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.816e-05/2.301, allocations: 31.98 kB / 1.057 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/2.301, allocations: 3.312 kB / 1.057 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.074e-05/2.301, allocations: 11.95 kB / 1.057 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/2.32, allocations: 8.651 MB / 1.065 GB, free: 5.512 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/2.32, allocations: 4.031 kB / 1.065 GB, free: 5.508 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002528/2.323, allocations: 0.5163 MB / 1.066 GB, free: 5.016 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005233/2.328, allocations: 1.1 MB / 1.067 GB, free: 3.922 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004638/2.329, allocations: 107.9 kB / 1.067 GB, free: 3.816 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/2.333, allocations: 2.616 MB / 1.069 GB, free: 1.133 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/2.333, allocations: 0 / 1.069 GB, free: 1.133 MB / 0.6667 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "pipe4.flowModel.states[1].T = Modelica.Math.Nonlinear.solveOneNonlinearEquation(function ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe4.Medium.T_phX.f_nonlinear(#(pipe6.flowModel.states[1].p), #(multiPort.ports_b[2].h_outflow), #({X.k})), 190.0, 647.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.1553/2.488, allocations: 18.89 MB / 1.088 GB, free: 14.04 MB / 0.698 GB Error: post-optimization module symbolicJacobian (simulation) failed.