Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,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.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,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.BranchingPipes15") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, 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.27/1.27, 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.001009/0.001009, allocations: 102.3 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.2933/0.2933, allocations: 44.13 MB / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 60.14 kB / 457.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2909, allocations: 60.8 MB / 0.5064 GB, free: 38.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.4458/0.7368, allocations: 233.9 MB / 0.7348 GB, free: 1.156 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02423/0.7611, allocations: 17.82 MB / 0.7522 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003011/0.7641, allocations: 112.5 kB / 0.7523 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002095/0.7663, allocations: 0.8064 MB / 0.7531 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009667/0.776, allocations: 3.67 MB / 0.7567 GB, free: 428 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0125/0.7885, allocations: 4.521 MB / 0.7611 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.01125/0.7998, allocations: 9.953 MB / 0.7708 GB, free: 8.871 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.8026, allocations: 1.306 MB / 0.7721 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005123/0.8077, allocations: 2.202 MB / 0.7742 GB, free: 5.703 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004817/0.8126, allocations: 2.532 MB / 0.7767 GB, free: 3.469 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.000947/0.8136, allocations: 112 kB / 0.7768 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007638/0.8212, allocations: 3.189 MB / 0.7799 GB, free: 408 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.8226, allocations: 0.8299 MB / 0.7808 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.00228/0.8249, allocations: 1.205 MB / 0.7819 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.009374/0.8343, allocations: 5.083 MB / 0.7869 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.8343, allocations: 0 / 0.7869 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.332e-06/0.8343, allocations: 0 / 0.7869 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.994e-05/0.8344, allocations: 0 / 0.7869 GB, free: 9.598 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.00769/0.8421, allocations: 3.31 MB / 0.7901 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.8422, allocations: 12.03 kB / 0.7901 GB, free: 6.262 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/0.8447, allocations: 428.8 kB / 0.7905 GB, free: 5.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003543/0.8482, allocations: 1.917 MB / 0.7924 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.8484, allocations: 127.5 kB / 0.7925 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/0.8487, allocations: 167.5 kB / 0.7927 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003892/0.8526, allocations: 2.564 MB / 0.7952 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.8526, allocations: 6.438 kB / 0.7952 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.8528, allocations: 67.17 kB / 0.7953 GB, free: 1.078 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/0.853, allocations: 197.6 kB / 0.7955 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003496/0.8565, allocations: 2.24 MB / 0.7976 GB, free: 14.66 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.01384/0.8704, allocations: 10.73 MB / 0.8081 GB, free: 3.363 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.8732, allocations: 1.767 MB / 0.8099 GB, free: 1.539 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.8747, allocations: 1.058 MB / 0.8109 GB, free: 488 kB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00081/0.8755, allocations: 0.512 MB / 0.8114 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001833/0.8774, allocations: 1.289 MB / 0.8126 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 3.296e-06/0.8774, allocations: 0 / 0.8126 GB, free: 14.55 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.02556/0.9029, allocations: 10.65 MB / 0.823 GB, free: 3.738 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.9031, allocations: 295 kB / 0.8233 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.9051, allocations: 1.572 MB / 0.8249 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.9053, allocations: 61.7 kB / 0.8249 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006886/0.906, allocations: 0.8829 MB / 0.8258 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005281/0.9066, allocations: 0.6221 MB / 0.8264 GB, free: 248 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007556/0.9073, allocations: 480.4 kB / 0.8268 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 8.228e-05/0.9074, allocations: 305.1 kB / 0.8271 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001742/0.9092, allocations: 1.071 MB / 0.8282 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.9113, allocations: 1.549 MB / 0.8297 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003823/0.9151, allocations: 2.757 MB / 0.8324 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.9152, allocations: 4 kB / 0.8324 GB, free: 9.75 MB / 0.5573 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.005688/0.9209, allocations: 3.219 MB / 0.8355 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-05/0.921, allocations: 75.39 kB / 0.8356 GB, free: 6.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.921, allocations: 15.98 kB / 0.8356 GB, free: 6.465 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004747/0.9215, allocations: 194.5 kB / 0.8358 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/0.9237, allocations: 0.5505 MB / 0.8363 GB, free: 5.742 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.9251, allocations: 2.325 MB / 0.8386 GB, free: 3.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/0.9273, allocations: 204 kB / 0.8388 GB, free: 3.125 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003163/0.9277, allocations: 188 kB / 0.839 GB, free: 2.941 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002366/0.93, allocations: 1.417 MB / 0.8404 GB, free: 1.516 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001932/0.932, allocations: 1.48 MB / 0.8418 GB, free: 15.85 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003518/0.9355, allocations: 2.615 MB / 0.8444 GB, free: 13.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.732e-06/0.9355, allocations: 0 / 0.8444 GB, free: 13.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=269) (initialization_lambda0): time 0.004944/0.9405, allocations: 3.071 MB / 0.8474 GB, free: 10.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.019e-05/0.9405, allocations: 71.39 kB / 0.8474 GB, free: 9.977 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.9406, allocations: 12 kB / 0.8475 GB, free: 9.965 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.941, allocations: 195.9 kB / 0.8476 GB, free: 9.762 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.9431, allocations: 0.5534 MB / 0.8482 GB, free: 9.238 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.9445, allocations: 2.323 MB / 0.8504 GB, free: 6.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.9465, allocations: 207.9 kB / 0.8506 GB, free: 6.617 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002733/0.9468, allocations: 188 kB / 0.8508 GB, free: 6.434 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.0006178/0.9474, allocations: 386.1 kB / 0.8512 GB, free: 6.07 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.9478, allocations: 213.4 kB / 0.8514 GB, free: 5.859 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007814/0.9556, allocations: 4.64 MB / 0.8559 GB, free: 1.199 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.9556, allocations: 20 kB / 0.8559 GB, free: 1.18 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.9557, allocations: 3.938 kB / 0.856 GB, free: 1.176 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003803/0.9595, allocations: 2.781 MB / 0.8587 GB, free: 14.29 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.9706, allocations: 7.358 MB / 0.8659 GB, free: 6.621 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/0.9707, allocations: 8 kB / 0.8659 GB, free: 6.613 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/0.9725, allocations: 445.5 kB / 0.8663 GB, free: 6.199 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00044/0.9729, allocations: 190.2 kB / 0.8665 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.9731, allocations: 104 kB / 0.8666 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.9749, allocations: 3.07 MB / 0.8696 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.9749, allocations: 10.53 kB / 0.8696 GB, free: 2.625 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.BranchingPipes15.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.009864/0.9848, allocations: 6.993 MB / 0.8764 GB, free: 11.44 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.