Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Media.check_Medium.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) 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/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-alpha11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Physiolibrary.Media.check_Medium,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.check_Medium") translateModel(Physiolibrary.Media.check_Medium,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.check_Medium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08286/0.08286, allocations: 15.26 MB / 31.21 MB, free: 3.234 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009768/0.0009769, allocations: 182.7 kB / 36.3 MB, free: 2.266 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.3 MB / 264.5 MB, free: 5.777 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.0007653/0.0007657, allocations: 94.2 kB / 319.9 MB, free: 2.754 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1094/0.1094, allocations: 20.56 MB / 395.8 MB, free: 43.26 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005292/0.0005292, allocations: 19.94 kB / 467.6 MB, free: 4.211 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2935, allocations: 59.78 MB / 0.515 GB, free: 41.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.4488, allocations: 148.1 MB / 0.6597 GB, free: 4.961 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.4491, allocations: 63.97 kB / 0.6597 GB, free: 4.898 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06241/0.5115, allocations: 22.9 MB / 0.6821 GB, free: 13.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5116, allocations: 0 / 0.6821 GB, free: 13.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.5116, allocations: 4 kB / 0.6821 GB, free: 13.91 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001343/0.5129, allocations: 0.5848 MB / 0.6827 GB, free: 13.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.513, allocations: 8.031 kB / 0.6827 GB, free: 13.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009739/0.514, allocations: 116.4 kB / 0.6828 GB, free: 13.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.5145, allocations: 256.4 kB / 0.683 GB, free: 12.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.5145, allocations: 8.812 kB / 0.683 GB, free: 12.85 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.5146, allocations: 28.36 kB / 0.6831 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.5157, allocations: 0.4945 MB / 0.6836 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.5157, allocations: 192 / 0.6836 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.987e-05/0.5158, allocations: 7.938 kB / 0.6836 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.759e-05/0.5158, allocations: 23.98 kB / 0.6836 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.5171, allocations: 0.5911 MB / 0.6842 GB, free: 11.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.5194, allocations: 1.393 MB / 0.6855 GB, free: 10.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.5199, allocations: 258.4 kB / 0.6858 GB, free: 9.961 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.5203, allocations: 177.2 kB / 0.6859 GB, free: 9.785 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.5206, allocations: 144.9 kB / 0.6861 GB, free: 9.625 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.5207, allocations: 34.55 kB / 0.6861 GB, free: 9.582 MB / 490.7 MB Notification: Performance of pre-optimization done (n=37): time 3.988e-06/0.5207, allocations: 0 / 0.6861 GB, free: 9.582 MB / 490.7 MB Notification: Performance of matching and sorting (n=37): time 0.001218/0.5219, allocations: 0.5563 MB / 0.6867 GB, free: 9.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.522, allocations: 55.41 kB / 0.6867 GB, free: 8.953 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.5223, allocations: 199.3 kB / 0.6869 GB, free: 8.742 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.5223, allocations: 33.7 kB / 0.6869 GB, free: 8.703 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.5224, allocations: 163.8 kB / 0.6871 GB, free: 8.539 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.5226, allocations: 126.2 kB / 0.6872 GB, free: 8.414 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.5226, allocations: 11.94 kB / 0.6872 GB, free: 8.402 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5228, allocations: 334.8 kB / 0.6875 GB, free: 8.066 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.5231, allocations: 164.9 kB / 0.6877 GB, free: 7.906 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.5236, allocations: 350.3 kB / 0.688 GB, free: 7.488 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009176/0.5246, allocations: 0.5562 MB / 0.6886 GB, free: 6.855 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5246, allocations: 0 / 0.6886 GB, free: 6.855 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001173/0.5258, allocations: 0.5632 MB / 0.6891 GB, free: 6.285 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.5258, allocations: 10.5 kB / 0.6891 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.5258, allocations: 8 kB / 0.6891 GB, free: 6.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.5259, allocations: 11.94 kB / 0.6891 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004714/0.5264, allocations: 103.9 kB / 0.6892 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/0.5264, allocations: 15.88 kB / 0.6893 GB, free: 6.141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.5267, allocations: 47.88 kB / 0.6893 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.844e-05/0.5268, allocations: 43.98 kB / 0.6893 GB, free: 6.051 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 45 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002193/0.5271, allocations: 165.6 kB / 0.6895 GB, free: 5.879 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.974e-05/0.5271, allocations: 19.72 kB / 0.6895 GB, free: 5.859 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.5289, allocations: 0.7165 MB / 0.6902 GB, free: 5.074 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/0.5289, allocations: 8 kB / 0.6902 GB, free: 5.066 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.529, allocations: 7.922 kB / 0.6902 GB, free: 5.059 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.529, allocations: 0 / 0.6902 GB, free: 5.059 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009673/0.5299, allocations: 0.6185 MB / 0.6908 GB, free: 4.371 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.53, allocations: 3.938 kB / 0.6908 GB, free: 4.367 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.5301, allocations: 27.92 kB / 0.6909 GB, free: 4.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.5301, allocations: 4.125 kB / 0.6909 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.5302, allocations: 8 kB / 0.6909 GB, free: 4.328 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.5302, allocations: 0 / 0.6909 GB, free: 4.328 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.5302, allocations: 11.97 kB / 0.6909 GB, free: 4.316 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004869/0.5307, allocations: 354.5 kB / 0.6912 GB, free: 3.941 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.5309, allocations: 144.7 kB / 0.6914 GB, free: 3.781 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.531, allocations: 11.94 kB / 0.6914 GB, free: 3.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.5312, allocations: 0 / 0.6914 GB, free: 3.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.5312, allocations: 7.984 kB / 0.6914 GB, free: 3.762 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.5313, allocations: 12 kB / 0.6914 GB, free: 3.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003168/0.5316, allocations: 225.9 kB / 0.6916 GB, free: 3.527 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5316, allocations: 0 / 0.6916 GB, free: 3.527 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001276/0.5329, allocations: 271.7 kB / 0.6919 GB, free: 3.262 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00126/0.5341, allocations: 0.5199 MB / 0.6924 GB, free: 2.738 MB / 490.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:6684:7-6684:48:writable] Error: Internal error solving array equation: 1 : chemicalSolution.substances[:].u = Physiolibrary.Media.check_Medium.Medium.electrochemicalPotentials_pTXvI(100000.0, chemicalSolution.T, chemicalSolution.x_baseMolecule, 0.0, 0.0) for variable: chemicalSolution.substances[2].u. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]