Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001717/0.001717, 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.299/1.299, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 109.7 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3193/0.3193, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.89 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2713, allocations: 62.02 MB / 0.5152 GB, free: 37.64 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.4611/0.7324, allocations: 234 MB / 0.7437 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.7565, allocations: 17.85 MB / 0.7611 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003053/0.7596, allocations: 112.9 kB / 0.7612 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.7617, allocations: 0.7968 MB / 0.762 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.008811/0.7705, allocations: 3.671 MB / 0.7656 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.7809, allocations: 4.525 MB / 0.77 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.01009/0.791, allocations: 9.986 MB / 0.7797 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.7935, allocations: 1.296 MB / 0.781 GB, free: 3.629 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004632/0.7981, allocations: 2.207 MB / 0.7832 GB, free: 1.73 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004159/0.8023, allocations: 2.535 MB / 0.7856 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0007495/0.8031, allocations: 114.6 kB / 0.7857 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007482/0.8106, allocations: 3.198 MB / 0.7889 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.8119, allocations: 0.8309 MB / 0.7897 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002374/0.8143, allocations: 1.205 MB / 0.7909 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.009307/0.8236, allocations: 5.094 MB / 0.7958 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.8237, allocations: 0 / 0.7958 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8237, allocations: 7.875 kB / 0.7958 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.953e-05/0.8238, allocations: 0 / 0.7958 GB, free: 5.594 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.007167/0.831, allocations: 3.312 MB / 0.7991 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.831, allocations: 12.03 kB / 0.7991 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002373/0.8334, allocations: 431.5 kB / 0.7995 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/0.8369, allocations: 1.965 MB / 0.8014 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.386e-05/0.837, allocations: 133.1 kB / 0.8015 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002726/0.8373, allocations: 167 kB / 0.8017 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00382/0.8411, allocations: 2.564 MB / 0.8042 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.94e-05/0.8411, allocations: 6.625 kB / 0.8042 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/0.8413, allocations: 71.02 kB / 0.8043 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002121/0.8416, allocations: 189.5 kB / 0.8045 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003526/0.8451, allocations: 2.241 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.01334/0.8584, allocations: 10.74 MB / 0.8171 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.8612, allocations: 1.763 MB / 0.8189 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.8627, allocations: 1.062 MB / 0.8199 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007923/0.8635, allocations: 0.5021 MB / 0.8204 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001846/0.8654, allocations: 1.285 MB / 0.8216 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 3.547e-06/0.8654, allocations: 0 / 0.8216 GB, free: 10.52 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.02505/0.8905, allocations: 10.66 MB / 0.832 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.8906, allocations: 283 kB / 0.8323 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001942/0.8926, allocations: 1.576 MB / 0.8339 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.8928, allocations: 57.7 kB / 0.8339 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006659/0.8935, allocations: 0.8905 MB / 0.8348 GB, free: 12.81 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000515/0.894, allocations: 0.6226 MB / 0.8354 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007422/0.8947, allocations: 487.5 kB / 0.8359 GB, free: 11.7 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.87e-05/0.8948, allocations: 301.1 kB / 0.8361 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/0.8966, allocations: 1.063 MB / 0.8372 GB, free: 10.33 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/0.8987, allocations: 1.546 MB / 0.8387 GB, free: 8.602 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00383/0.9025, allocations: 2.758 MB / 0.8414 GB, free: 5.707 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.9026, allocations: 11.88 kB / 0.8414 GB, free: 5.695 MB / 0.5573 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.005343/0.9079, allocations: 3.22 MB / 0.8445 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/0.908, allocations: 79.42 kB / 0.8446 GB, free: 2.422 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.908, allocations: 12 kB / 0.8446 GB, free: 2.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.9085, allocations: 198 kB / 0.8448 GB, free: 2.207 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/0.9108, allocations: 0.5526 MB / 0.8454 GB, free: 1.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.9122, allocations: 2.329 MB / 0.8476 GB, free: 15.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002143/0.9143, allocations: 206.4 kB / 0.8478 GB, free: 15.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003335/0.9147, allocations: 195.9 kB / 0.848 GB, free: 14.87 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002358/0.917, allocations: 1.417 MB / 0.8494 GB, free: 13.44 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002028/0.9191, allocations: 1.473 MB / 0.8508 GB, free: 11.79 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003604/0.9227, allocations: 2.607 MB / 0.8534 GB, free: 9.035 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.034e-05/0.9227, allocations: 4 kB / 0.8534 GB, free: 9.031 MB / 0.573 GB Notification: Performance of matching and sorting (n=269) (initialization_lambda0): time 0.005064/0.9278, allocations: 3.064 MB / 0.8564 GB, free: 6.004 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.637e-05/0.9278, allocations: 79.42 kB / 0.8565 GB, free: 5.914 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.9279, allocations: 12 kB / 0.8565 GB, free: 5.902 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004112/0.9283, allocations: 190.2 kB / 0.8566 GB, free: 5.707 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.9305, allocations: 0.5459 MB / 0.8572 GB, free: 5.188 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.9319, allocations: 2.331 MB / 0.8595 GB, free: 2.766 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/0.9339, allocations: 207.8 kB / 0.8597 GB, free: 2.562 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002982/0.9342, allocations: 188 kB / 0.8598 GB, free: 2.379 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.0006264/0.9349, allocations: 373.2 kB / 0.8602 GB, free: 2.023 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004673/0.9354, allocations: 217.3 kB / 0.8604 GB, free: 1.809 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007775/0.9431, allocations: 4.654 MB / 0.8649 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.9432, allocations: 16 kB / 0.865 GB, free: 13.12 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.9432, allocations: 8 kB / 0.865 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003826/0.947, allocations: 2.778 MB / 0.8677 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.9595, allocations: 7.361 MB / 0.8749 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/0.9595, allocations: 4 kB / 0.8749 GB, free: 2.547 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/0.9613, allocations: 440.3 kB / 0.8753 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/0.9618, allocations: 195.4 kB / 0.8755 GB, free: 1.934 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.962, allocations: 95.95 kB / 0.8756 GB, free: 1.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.964, allocations: 3.073 MB / 0.8786 GB, free: 14.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.964, allocations: 14.52 kB / 0.8786 GB, free: 14.56 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.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.0104/0.9744, allocations: 6.997 MB / 0.8854 GB, free: 7.375 MB / 0.6042 GB Error: post-optimization module symbolicJacobian (simulation) failed.