Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 98.12 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3184/0.3184, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.89 kB / 465.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2688, allocations: 62.03 MB / 0.5152 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.4531/0.7219, allocations: 234 MB / 0.7437 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0245/0.7464, allocations: 17.86 MB / 0.7611 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00427/0.7508, allocations: 113.3 kB / 0.7612 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.002804/0.7536, allocations: 0.8001 MB / 0.762 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.011/0.7647, allocations: 3.675 MB / 0.7656 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.01287/0.7776, allocations: 4.524 MB / 0.77 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0122/0.7898, allocations: 9.986 MB / 0.7797 GB, free: 4.895 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003321/0.7932, allocations: 1.299 MB / 0.781 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005975/0.7992, allocations: 2.212 MB / 0.7832 GB, free: 1.719 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005164/0.8044, allocations: 2.533 MB / 0.7856 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.8055, allocations: 112 kB / 0.7858 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008131/0.8137, allocations: 3.201 MB / 0.7889 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.8156, allocations: 0.8338 MB / 0.7897 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003271/0.8189, allocations: 1.205 MB / 0.7909 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.8291, allocations: 5.098 MB / 0.7958 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.8291, allocations: 0 / 0.7958 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8291, allocations: 3.938 kB / 0.7959 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001027/0.8292, allocations: 0 / 0.7959 GB, free: 5.582 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.008148/0.8374, allocations: 3.303 MB / 0.7991 GB, free: 2.262 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.8374, allocations: 16.03 kB / 0.7991 GB, free: 2.246 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/0.8401, allocations: 428.5 kB / 0.7995 GB, free: 1.828 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.8441, allocations: 1.961 MB / 0.8014 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.8442, allocations: 134.4 kB / 0.8015 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000354/0.8446, allocations: 164.5 kB / 0.8017 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004234/0.8488, allocations: 2.563 MB / 0.8042 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.605e-05/0.8489, allocations: 6.625 kB / 0.8042 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/0.8491, allocations: 75.78 kB / 0.8043 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/0.8493, allocations: 189.6 kB / 0.8045 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003705/0.853, allocations: 2.237 MB / 0.8066 GB, free: 10.61 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.8669, allocations: 10.73 MB / 0.8171 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.8698, allocations: 1.772 MB / 0.8189 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.8714, allocations: 1.062 MB / 0.8199 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000813/0.8723, allocations: 0.4993 MB / 0.8204 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001909/0.8742, allocations: 1.291 MB / 0.8216 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 3.166e-06/0.8742, allocations: 4 kB / 0.8216 GB, free: 10.51 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.02615/0.9004, allocations: 10.66 MB / 0.8321 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.9005, allocations: 291 kB / 0.8323 GB, free: 15.33 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.9025, allocations: 1.576 MB / 0.8339 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000235/0.9027, allocations: 57.7 kB / 0.8339 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006603/0.9034, allocations: 0.8871 MB / 0.8348 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.9039, allocations: 0.6183 MB / 0.8354 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007416/0.9047, allocations: 483.5 kB / 0.8359 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 8.732e-05/0.9048, allocations: 301.1 kB / 0.8361 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.9065, allocations: 1.067 MB / 0.8372 GB, free: 10.33 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002155/0.9087, allocations: 1.547 MB / 0.8387 GB, free: 8.598 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003778/0.9124, allocations: 2.758 MB / 0.8414 GB, free: 5.703 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.9125, allocations: 11.88 kB / 0.8414 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.005221/0.9177, allocations: 3.214 MB / 0.8445 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.962e-05/0.9178, allocations: 75.39 kB / 0.8446 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.9178, allocations: 12 kB / 0.8446 GB, free: 2.414 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004498/0.9183, allocations: 198.5 kB / 0.8448 GB, free: 2.211 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/0.9205, allocations: 0.5513 MB / 0.8454 GB, free: 1.688 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.9219, allocations: 2.325 MB / 0.8476 GB, free: 15.27 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.924, allocations: 207.6 kB / 0.8478 GB, free: 15.07 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.9243, allocations: 192 kB / 0.848 GB, free: 14.88 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002266/0.9265, allocations: 1.421 MB / 0.8494 GB, free: 13.45 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001964/0.9285, allocations: 1.472 MB / 0.8508 GB, free: 11.79 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003507/0.932, allocations: 2.607 MB / 0.8534 GB, free: 9.047 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.064e-06/0.9321, allocations: 4 kB / 0.8534 GB, free: 9.043 MB / 0.573 GB Notification: Performance of matching and sorting (n=269) (initialization_lambda0): time 0.004856/0.9369, allocations: 3.067 MB / 0.8564 GB, free: 6.012 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.238e-05/0.937, allocations: 75.39 kB / 0.8564 GB, free: 5.926 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.937, allocations: 12 kB / 0.8565 GB, free: 5.914 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003967/0.9374, allocations: 191.9 kB / 0.8566 GB, free: 5.715 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002172/0.9396, allocations: 0.548 MB / 0.8572 GB, free: 5.195 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.9409, allocations: 2.326 MB / 0.8594 GB, free: 2.777 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/0.9429, allocations: 211.7 kB / 0.8596 GB, free: 2.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.9432, allocations: 188 kB / 0.8598 GB, free: 2.387 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.0006005/0.9438, allocations: 379.7 kB / 0.8602 GB, free: 2.027 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004001/0.9443, allocations: 221.3 kB / 0.8604 GB, free: 1.809 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008001/0.9523, allocations: 4.641 MB / 0.8649 GB, free: 13.14 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.9523, allocations: 16 kB / 0.8649 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.9523, allocations: 4 kB / 0.865 GB, free: 13.12 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003823/0.9562, allocations: 2.788 MB / 0.8677 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/0.9676, allocations: 7.359 MB / 0.8749 GB, free: 2.555 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.9677, allocations: 4 kB / 0.8749 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.9694, allocations: 445.4 kB / 0.8753 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004307/0.9699, allocations: 193.6 kB / 0.8755 GB, free: 1.938 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.9701, allocations: 99.94 kB / 0.8756 GB, free: 1.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.9719, allocations: 3.074 MB / 0.8786 GB, free: 14.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/0.972, allocations: 10.91 kB / 0.8786 GB, free: 14.57 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.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.01006/0.982, allocations: 6.998 MB / 0.8854 GB, free: 7.375 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.