Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00168/0.00168, allocations: 207.3 kB / 17.99 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001038/0.001038, allocations: 104.5 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.315/0.315, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 67.89 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2891, allocations: 62.02 MB / 0.5152 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.4955/0.7846, allocations: 243.5 MB / 0.753 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02494/0.8096, allocations: 18.19 MB / 0.7707 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003747/0.8134, allocations: 117.8 kB / 0.7708 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.003036/0.8165, allocations: 0.86 MB / 0.7717 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.01133/0.8279, allocations: 3.982 MB / 0.7756 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0118/0.8397, allocations: 4.669 MB / 0.7801 GB, free: 8.605 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.01112/0.8508, allocations: 10.56 MB / 0.7904 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002943/0.8538, allocations: 1.392 MB / 0.7918 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005513/0.8594, allocations: 2.376 MB / 0.7941 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004828/0.8642, allocations: 2.652 MB / 0.7967 GB, free: 9.676 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.8653, allocations: 116 kB / 0.7968 GB, free: 9.562 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008469/0.8738, allocations: 3.418 MB / 0.8002 GB, free: 6.406 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001622/0.8754, allocations: 0.869 MB / 0.801 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.00294/0.8784, allocations: 1.272 MB / 0.8023 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.8895, allocations: 5.413 MB / 0.8075 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.8896, allocations: 0 / 0.8075 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8896, allocations: 0 / 0.8075 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001425/0.8897, allocations: 0 / 0.8075 GB, free: 15.2 MB / 0.5261 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.008945/0.8987, allocations: 3.46 MB / 0.8109 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.8987, allocations: 12.03 kB / 0.8109 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002867/0.9016, allocations: 440.7 kB / 0.8114 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004105/0.9057, allocations: 2.032 MB / 0.8133 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.9059, allocations: 139 kB / 0.8135 GB, free: 9.242 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004897/0.9064, allocations: 184.1 kB / 0.8136 GB, free: 9.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004874/0.9113, allocations: 2.675 MB / 0.8163 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.874e-05/0.9113, allocations: 10.23 kB / 0.8163 GB, free: 6.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.9116, allocations: 73.3 kB / 0.8163 GB, free: 6.258 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002156/0.9118, allocations: 193.6 kB / 0.8165 GB, free: 6.07 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003808/0.9156, allocations: 2.342 MB / 0.8188 GB, free: 3.75 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.01452/0.9301, allocations: 11.27 MB / 0.8298 GB, free: 7.891 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/0.9331, allocations: 1.847 MB / 0.8316 GB, free: 5.98 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.9348, allocations: 1.122 MB / 0.8327 GB, free: 4.863 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008093/0.9356, allocations: 0.5071 MB / 0.8332 GB, free: 4.273 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002002/0.9376, allocations: 1.353 MB / 0.8345 GB, free: 2.883 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 4.087e-06/0.9376, allocations: 0 / 0.8345 GB, free: 2.883 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.03094/0.9686, allocations: 11.83 MB / 0.8461 GB, free: 6.879 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.9687, allocations: 295 kB / 0.8464 GB, free: 6.531 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.9711, allocations: 1.654 MB / 0.848 GB, free: 4.832 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000285/0.9714, allocations: 68.61 kB / 0.8481 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007545/0.9722, allocations: 0.9273 MB / 0.849 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006734/0.9729, allocations: 0.6728 MB / 0.8496 GB, free: 3.16 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009097/0.9738, allocations: 0.504 MB / 0.8501 GB, free: 2.648 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.942e-05/0.9739, allocations: 305.1 kB / 0.8504 GB, free: 2.348 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.9758, allocations: 1.123 MB / 0.8515 GB, free: 1.215 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002348/0.9782, allocations: 1.647 MB / 0.8531 GB, free: 15.37 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004306/0.9825, allocations: 2.917 MB / 0.856 GB, free: 12.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.639e-05/0.9826, allocations: 4 kB / 0.856 GB, free: 12.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006164/0.9887, allocations: 3.477 MB / 0.8594 GB, free: 8.859 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.67e-05/0.9888, allocations: 75.39 kB / 0.8594 GB, free: 8.773 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.9889, allocations: 12 kB / 0.8594 GB, free: 8.762 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000816/0.9897, allocations: 311.4 kB / 0.8597 GB, free: 8.445 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/0.992, allocations: 0.583 MB / 0.8603 GB, free: 7.879 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.9939, allocations: 3.016 MB / 0.8632 GB, free: 4.734 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002298/0.9963, allocations: 215.6 kB / 0.8635 GB, free: 4.523 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003894/0.9967, allocations: 204 kB / 0.8636 GB, free: 4.324 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002638/0.9993, allocations: 1.48 MB / 0.8651 GB, free: 2.836 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002261/1.002, allocations: 1.571 MB / 0.8666 GB, free: 1.059 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003876/1.005, allocations: 2.776 MB / 0.8693 GB, free: 14.08 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.292e-05/1.005, allocations: 8 kB / 0.8693 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.00567/1.011, allocations: 3.31 MB / 0.8726 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/1.011, allocations: 81.98 kB / 0.8727 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/1.011, allocations: 12 kB / 0.8727 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007461/1.012, allocations: 306.7 kB / 0.873 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/1.014, allocations: 0.5695 MB / 0.8735 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/1.016, allocations: 3.012 MB / 0.8765 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/1.018, allocations: 211.7 kB / 0.8767 GB, free: 6.395 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/1.019, allocations: 200 kB / 0.8768 GB, free: 6.199 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.0006848/1.02, allocations: 390.9 kB / 0.8772 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005686/1.02, allocations: 229.3 kB / 0.8774 GB, free: 5.574 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00881/1.029, allocations: 4.801 MB / 0.8821 GB, free: 0.7266 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/1.029, allocations: 20 kB / 0.8821 GB, free: 0.707 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/1.029, allocations: 4 kB / 0.8822 GB, free: 0.7031 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004521/1.033, allocations: 3.014 MB / 0.8851 GB, free: 13.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/1.046, allocations: 7.19 MB / 0.8921 GB, free: 6.133 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.046, allocations: 7.938 kB / 0.8921 GB, free: 6.125 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/1.048, allocations: 464.2 kB / 0.8926 GB, free: 5.672 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008626/1.049, allocations: 324 kB / 0.8929 GB, free: 5.34 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002432/1.049, allocations: 115.9 kB / 0.893 GB, free: 5.227 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/1.052, allocations: 3.739 MB / 0.8966 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.052, allocations: 8 kB / 0.8966 GB, free: 1.246 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.01196/1.064, allocations: 7.575 MB / 0.904 GB, free: 9.457 MB / 0.6198 GB Error: post-optimization module symbolicJacobian (simulation) failed.