Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, 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.265/1.265, allocations: 222.9 MB / 241.6 MB, free: 11.02 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.0009885/0.0009889, allocations: 108.4 kB / 291.9 MB, free: 10.98 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.2911/0.2911, allocations: 44.14 MB / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 55.91 kB / 457.7 MB, free: 2.352 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2876, allocations: 60.8 MB / 0.5064 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.4621/0.7498, allocations: 243.4 MB / 0.7441 GB, free: 0.9336 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.7761, allocations: 18.16 MB / 0.7618 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.7802, allocations: 115.5 kB / 0.762 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.00313/0.7834, allocations: 0.8635 MB / 0.7628 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.01176/0.7952, allocations: 3.983 MB / 0.7667 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.01322/0.8085, allocations: 4.662 MB / 0.7712 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.01191/0.8204, allocations: 10.53 MB / 0.7815 GB, free: 3.461 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003453/0.8239, allocations: 1.403 MB / 0.7829 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00632/0.8303, allocations: 2.358 MB / 0.7852 GB, free: 60 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005744/0.8361, allocations: 2.656 MB / 0.7878 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.8372, allocations: 120 kB / 0.7879 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008908/0.8462, allocations: 3.412 MB / 0.7912 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001753/0.848, allocations: 0.8606 MB / 0.7921 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003313/0.8513, allocations: 1.275 MB / 0.7933 GB, free: 8.359 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.8638, allocations: 5.398 MB / 0.7986 GB, free: 3.258 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.8639, allocations: 3.938 kB / 0.7986 GB, free: 3.254 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.774e-06/0.8639, allocations: 0 / 0.7986 GB, free: 3.254 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001334/0.864, allocations: 0 / 0.7986 GB, free: 3.254 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.00991/0.8739, allocations: 3.455 MB / 0.802 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.874, allocations: 11.97 kB / 0.802 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003117/0.8771, allocations: 448.7 kB / 0.8024 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004156/0.8813, allocations: 1.971 MB / 0.8043 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.8815, allocations: 140.8 kB / 0.8045 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005203/0.882, allocations: 184.1 kB / 0.8047 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004802/0.8868, allocations: 2.671 MB / 0.8073 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.277e-05/0.8869, allocations: 11.08 kB / 0.8073 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000258/0.8872, allocations: 69.14 kB / 0.8073 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002282/0.8874, allocations: 190 kB / 0.8075 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004265/0.8917, allocations: 2.34 MB / 0.8098 GB, free: 7.867 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.01532/0.907, allocations: 11.28 MB / 0.8208 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003042/0.9101, allocations: 1.843 MB / 0.8226 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.9117, allocations: 1.115 MB / 0.8237 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007986/0.9126, allocations: 0.5071 MB / 0.8242 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/0.9147, allocations: 1.359 MB / 0.8255 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 4.699e-06/0.9147, allocations: 0 / 0.8255 GB, free: 7.008 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.03112/0.9459, allocations: 11.82 MB / 0.8371 GB, free: 11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.946, allocations: 291 kB / 0.8373 GB, free: 10.66 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002232/0.9483, allocations: 1.651 MB / 0.839 GB, free: 8.965 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.9485, allocations: 61.7 kB / 0.839 GB, free: 8.898 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007191/0.9492, allocations: 0.9257 MB / 0.8399 GB, free: 7.965 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006068/0.9498, allocations: 0.6708 MB / 0.8406 GB, free: 7.301 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008791/0.9507, allocations: 0.5117 MB / 0.8411 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 8.07e-05/0.9508, allocations: 309.1 kB / 0.8414 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001875/0.9527, allocations: 1.119 MB / 0.8425 GB, free: 5.348 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.9551, allocations: 1.651 MB / 0.8441 GB, free: 3.488 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004225/0.9593, allocations: 2.921 MB / 0.8469 GB, free: 428 kB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.9593, allocations: 8 kB / 0.8469 GB, free: 420 kB / 0.5573 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006128/0.9655, allocations: 3.473 MB / 0.8503 GB, free: 12.98 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.492e-05/0.9656, allocations: 77.11 kB / 0.8504 GB, free: 12.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/0.9656, allocations: 12 kB / 0.8504 GB, free: 12.88 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008295/0.9664, allocations: 309 kB / 0.8507 GB, free: 12.57 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002316/0.9688, allocations: 0.5786 MB / 0.8513 GB, free: 12.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.9707, allocations: 3.016 MB / 0.8542 GB, free: 8.891 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/0.9732, allocations: 207.7 kB / 0.8544 GB, free: 8.688 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004578/0.9736, allocations: 207.9 kB / 0.8546 GB, free: 8.484 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002788/0.9764, allocations: 1.48 MB / 0.8561 GB, free: 6.996 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002259/0.9787, allocations: 1.576 MB / 0.8576 GB, free: 5.223 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003923/0.9826, allocations: 2.777 MB / 0.8603 GB, free: 2.293 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.966e-06/0.9827, allocations: 4 kB / 0.8603 GB, free: 2.289 MB / 0.573 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.005888/0.9886, allocations: 3.303 MB / 0.8635 GB, free: 15.03 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/0.9887, allocations: 79.38 kB / 0.8636 GB, free: 14.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.626e-05/0.9887, allocations: 16 kB / 0.8636 GB, free: 14.92 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008036/0.9895, allocations: 306.7 kB / 0.8639 GB, free: 14.61 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002303/0.9918, allocations: 0.5707 MB / 0.8645 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.9937, allocations: 3.015 MB / 0.8674 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/0.9962, allocations: 203.8 kB / 0.8676 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004287/0.9966, allocations: 204 kB / 0.8678 GB, free: 10.54 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (270): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,1), (1,1), (1,1), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0008848/0.9975, allocations: 400.1 kB / 0.8682 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006787/0.9982, allocations: 229.3 kB / 0.8684 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/1.008, allocations: 4.797 MB / 0.8731 GB, free: 5.125 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/1.008, allocations: 20 kB / 0.8731 GB, free: 5.105 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.008, allocations: 7.938 kB / 0.8731 GB, free: 5.098 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004689/1.012, allocations: 3.004 MB / 0.8761 GB, free: 1.984 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/1.026, allocations: 7.189 MB / 0.8831 GB, free: 10.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/1.026, allocations: 4 kB / 0.8831 GB, free: 10.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.028, allocations: 469.6 kB / 0.8835 GB, free: 10.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009129/1.029, allocations: 325.4 kB / 0.8838 GB, free: 9.828 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002884/1.029, allocations: 115.9 kB / 0.884 GB, free: 9.715 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/1.032, allocations: 3.75 MB / 0.8876 GB, free: 5.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.032, allocations: 10.91 kB / 0.8876 GB, free: 5.742 MB / 0.6042 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.BranchingPipes17.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.01281/1.044, allocations: 7.574 MB / 0.895 GB, free: 13.98 MB / 0.6198 GB Error: post-optimization module symbolicJacobian (simulation) failed.