Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, 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.266/1.266, allocations: 222.9 MB / 241.6 MB, free: 10.98 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.0009996/0.0009995, allocations: 102.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.3018/0.3018, allocations: 44.13 MB / 386.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009889/0.000989, allocations: 51.92 kB / 457.7 MB, free: 2.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2699, allocations: 60.8 MB / 0.5064 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.4273/0.6972, allocations: 233.9 MB / 0.7348 GB, free: 1.141 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02286/0.7201, allocations: 17.82 MB / 0.7522 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002849/0.723, allocations: 119.4 kB / 0.7523 GB, free: 0.6289 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.7251, allocations: 0.7979 MB / 0.7531 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008716/0.7339, allocations: 3.652 MB / 0.7567 GB, free: 416 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01112/0.7451, allocations: 4.53 MB / 0.7611 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0103/0.7554, allocations: 9.954 MB / 0.7708 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.7578, allocations: 1.31 MB / 0.7721 GB, free: 7.617 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004717/0.7625, allocations: 2.202 MB / 0.7742 GB, free: 5.723 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004176/0.7667, allocations: 2.532 MB / 0.7767 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0008082/0.7676, allocations: 114.5 kB / 0.7768 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007383/0.775, allocations: 3.19 MB / 0.7799 GB, free: 428 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001285/0.7763, allocations: 0.8273 MB / 0.7807 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002263/0.7786, allocations: 1.201 MB / 0.7819 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.008596/0.7872, allocations: 5.087 MB / 0.7869 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.7872, allocations: 0 / 0.7869 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7872, allocations: 0 / 0.7869 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.678e-05/0.7873, allocations: 2.625 kB / 0.7869 GB, free: 9.613 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.007031/0.7943, allocations: 3.304 MB / 0.7901 GB, free: 6.293 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.7944, allocations: 12.03 kB / 0.7901 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/0.7967, allocations: 431.8 kB / 0.7905 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003414/0.8002, allocations: 1.909 MB / 0.7924 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.503e-05/0.8003, allocations: 127.7 kB / 0.7925 GB, free: 3.945 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.8006, allocations: 164.5 kB / 0.7927 GB, free: 3.793 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00375/0.8043, allocations: 2.572 MB / 0.7952 GB, free: 1.156 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/0.8044, allocations: 6.625 kB / 0.7952 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/0.8046, allocations: 64.44 kB / 0.7953 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002211/0.8048, allocations: 197.5 kB / 0.7955 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003578/0.8084, allocations: 2.24 MB / 0.7976 GB, free: 14.69 MB / 0.5261 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.01428/0.8227, allocations: 10.73 MB / 0.8081 GB, free: 3.395 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003269/0.826, allocations: 1.769 MB / 0.8098 GB, free: 1.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/0.8281, allocations: 1.058 MB / 0.8109 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008516/0.8289, allocations: 0.5111 MB / 0.8114 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001965/0.8309, allocations: 1.289 MB / 0.8126 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 4.048e-06/0.8309, allocations: 4 kB / 0.8126 GB, free: 14.59 MB / 0.5417 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02499/0.8559, allocations: 10.65 MB / 0.823 GB, free: 3.766 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.8561, allocations: 295 kB / 0.8233 GB, free: 3.414 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.8581, allocations: 1.572 MB / 0.8249 GB, free: 1.844 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.8583, allocations: 61.7 kB / 0.8249 GB, free: 1.777 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007122/0.859, allocations: 0.8855 MB / 0.8258 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005101/0.8595, allocations: 0.6244 MB / 0.8264 GB, free: 276 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007891/0.8603, allocations: 484.4 kB / 0.8268 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.8604, allocations: 301.1 kB / 0.8271 GB, free: 15.49 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.8622, allocations: 1.067 MB / 0.8282 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.8643, allocations: 1.558 MB / 0.8297 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.8681, allocations: 2.753 MB / 0.8324 GB, free: 9.777 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.8681, allocations: 4 kB / 0.8324 GB, free: 9.773 MB / 0.5573 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.00525/0.8734, allocations: 3.22 MB / 0.8355 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.793e-05/0.8735, allocations: 79.38 kB / 0.8356 GB, free: 6.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.8735, allocations: 12 kB / 0.8356 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/0.874, allocations: 194.4 kB / 0.8358 GB, free: 6.289 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/0.8762, allocations: 0.5505 MB / 0.8363 GB, free: 5.766 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.8776, allocations: 2.325 MB / 0.8386 GB, free: 3.348 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.8797, allocations: 203.7 kB / 0.8388 GB, free: 3.148 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003412/0.8801, allocations: 188 kB / 0.839 GB, free: 2.965 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002423/0.8825, allocations: 1.42 MB / 0.8404 GB, free: 1.539 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002079/0.8846, allocations: 1.484 MB / 0.8418 GB, free: 15.88 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003686/0.8883, allocations: 2.608 MB / 0.8444 GB, free: 13.12 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.837e-06/0.8883, allocations: 0 / 0.8444 GB, free: 13.12 MB / 0.573 GB Notification: Performance of matching and sorting (n=269) (initialization_lambda0): time 0.005275/0.8936, allocations: 3.068 MB / 0.8474 GB, free: 10.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.658e-05/0.8937, allocations: 79.38 kB / 0.8474 GB, free: 10 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.8937, allocations: 12 kB / 0.8475 GB, free: 9.988 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004167/0.8942, allocations: 198.8 kB / 0.8476 GB, free: 9.785 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002267/0.8964, allocations: 0.5414 MB / 0.8482 GB, free: 9.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.898, allocations: 2.33 MB / 0.8504 GB, free: 6.848 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002227/0.9002, allocations: 203.9 kB / 0.8506 GB, free: 6.648 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004012/0.9006, allocations: 188 kB / 0.8508 GB, free: 6.465 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 14 (valveOpening2.nextEventScaled,valveOpening2.nextEvent,$PRE.valveOpening2.nextEvent,valveOpening2.last,valveOpening2.b,valveOpening2.a,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (255): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0007783/0.9014, allocations: 386.4 kB / 0.8512 GB, free: 6.098 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006368/0.902, allocations: 213.4 kB / 0.8514 GB, free: 5.887 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008397/0.9105, allocations: 4.646 MB / 0.8559 GB, free: 1.219 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.9105, allocations: 20 kB / 0.8559 GB, free: 1.199 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-05/0.9105, allocations: 6.422 kB / 0.856 GB, free: 1.195 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00404/0.9146, allocations: 2.779 MB / 0.8587 GB, free: 14.31 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.9266, allocations: 7.354 MB / 0.8659 GB, free: 6.645 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.9266, allocations: 4 kB / 0.8659 GB, free: 6.641 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.9284, allocations: 446.7 kB / 0.8663 GB, free: 6.227 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004758/0.9289, allocations: 187.2 kB / 0.8665 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/0.9292, allocations: 107.1 kB / 0.8666 GB, free: 5.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.9312, allocations: 3.074 MB / 0.8696 GB, free: 2.66 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.9312, allocations: 6.625 kB / 0.8696 GB, free: 2.656 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "pipe1.statesFM[1].T = Modelica.Math.Nonlinear.solveOneNonlinearEquation(function ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe1.Medium.T_h.f_nonlinear(Modelica.Media.IdealGases.Common.DataRecord("Air", #(0.0289651159), #(-4333.833858403446), #(298609.6803431054), #(1000.0), #({10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}), #({-176.796731, -3.921504225}), #({241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}), #({6462.26319, -8.147411905}), #(287.0512249529787)), #(source.ports[1].h_outflow)), 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.01055/0.9417, allocations: 7.002 MB / 0.8764 GB, free: 11.46 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.