Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Media.Blood.ArterialComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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/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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/package.mo) Running command: translateModel(Physiolibrary.Media.Blood.ArterialComposition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.Blood.ArterialComposition") translateModel(Physiolibrary.Media.Blood.ArterialComposition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.Blood.ArterialComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08252/0.08252, allocations: 15.29 MB / 31.59 MB, free: 4.141 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 105.7 kB / 36.59 MB, free: 3.16 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 197 kB / 41.7 MB, free: 7.125 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 269.6 MB, free: 6.918 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1347/0.1347, allocations: 23.36 MB / 347.3 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 117.8 kB / 493.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2789, allocations: 59.36 MB / 0.5397 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Media.Blood.ArterialComposition): time 0.01759/0.2965, allocations: 20.77 MB / 0.5599 GB, free: 7.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00497/0.3015, allocations: 4.498 MB / 0.5643 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.3016, allocations: 1.031 kB / 0.5643 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.302, allocations: 90.25 kB / 0.5644 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.3054, allocations: 1.666 MB / 0.566 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3071, allocations: 0.7864 MB / 0.5668 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008383/0.3079, allocations: 0.9503 MB / 0.5677 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.583e-05/0.308, allocations: 41.06 kB / 0.5678 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.3095, allocations: 0.9062 MB / 0.5687 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1328/0.4423, allocations: 23.7 MB / 0.5918 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000231/0.4425, allocations: 36 kB / 0.5918 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4429/0.8854, allocations: 77.67 MB / 0.6677 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000422/0.8859, allocations: 267.2 kB / 0.6679 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007099/0.8866, allocations: 398.1 kB / 0.6683 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004563/0.8912, allocations: 2.001 MB / 0.6703 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.8912, allocations: 0 / 0.6703 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.166e-05/0.8912, allocations: 7.922 kB / 0.6703 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.575e-05/0.8912, allocations: 4 kB / 0.6703 GB, free: 9.578 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003989/0.8952, allocations: 1.205 MB / 0.6715 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.8953, allocations: 8.031 kB / 0.6715 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.8954, allocations: 72 kB / 0.6715 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.8957, allocations: 254.3 kB / 0.6718 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.8958, allocations: 49.31 kB / 0.6718 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-05/0.8959, allocations: 64 kB / 0.6719 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.8992, allocations: 3.313 MB / 0.6751 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.8992, allocations: 0 / 0.6751 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.762e-05/0.8993, allocations: 24 kB / 0.6752 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.392e-05/0.8994, allocations: 81.95 kB / 0.6752 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005677/0.905, allocations: 6.567 MB / 0.6816 GB, free: 13.83 MB / 0.5137 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.009219/0.9143, allocations: 8.328 MB / 0.6898 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.917, allocations: 2.852 MB / 0.6926 GB, free: 2.523 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.9193, allocations: 2.703 MB / 0.6952 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001821/0.9212, allocations: 1.822 MB / 0.697 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.9212, allocations: 55.5 kB / 0.697 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=138): time 2.685e-06/0.9212, allocations: 0 / 0.697 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=138): time 0.035/0.9562, allocations: 12.86 MB / 0.7096 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.9563, allocations: 149.5 kB / 0.7097 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.9566, allocations: 287 kB / 0.71 GB, free: 304 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/0.9567, allocations: 41.7 kB / 0.71 GB, free: 256 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.9569, allocations: 311.7 kB / 0.7103 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003412/0.9572, allocations: 465.1 kB / 0.7108 GB, free: 15.48 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003885/0.9576, allocations: 278.7 kB / 0.7111 GB, free: 15.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.9577, allocations: 317.9 kB / 0.7114 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002024/0.9598, allocations: 2.113 MB / 0.7134 GB, free: 12.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/0.9621, allocations: 2.51 MB / 0.7159 GB, free: 10.08 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004688/0.9668, allocations: 4.937 MB / 0.7207 GB, free: 4.969 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.9668, allocations: 8 kB / 0.7207 GB, free: 4.961 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.206/1.173, allocations: 7.156 MB / 0.7277 GB, free: 173.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/1.173, allocations: 10.03 kB / 0.7277 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/1.173, allocations: 13.22 kB / 0.7277 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3371/1.51, allocations: 63.47 MB / 0.7897 GB, free: 118.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004897/1.511, allocations: 171.6 kB / 0.7899 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007204/1.511, allocations: 132.7 kB / 0.79 GB, free: 118.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006424/1.512, allocations: 131.1 kB / 0.7901 GB, free: 118 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/1.512, allocations: 124 kB / 0.7902 GB, free: 117.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001686/1.514, allocations: 2.281 MB / 0.7925 GB, free: 115.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0016/1.515, allocations: 2.506 MB / 0.7949 GB, free: 112.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003345/1.519, allocations: 4.941 MB / 0.7997 GB, free: 107.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.602e-06/1.519, allocations: 5.484 kB / 0.7997 GB, free: 107.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization_lambda0): time 0.005244/1.524, allocations: 7.149 MB / 0.8067 GB, free: 100.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.524, allocations: 11.98 kB / 0.8067 GB, free: 100.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/1.524, allocations: 16 kB / 0.8067 GB, free: 100.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3269/1.851, allocations: 56.52 MB / 0.8619 GB, free: 44.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/1.851, allocations: 179.7 kB / 0.8621 GB, free: 43.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000667/1.852, allocations: 125.1 kB / 0.8622 GB, free: 43.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/1.853, allocations: 106.9 kB / 0.8623 GB, free: 43.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/1.853, allocations: 132.4 kB / 0.8625 GB, free: 43.62 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(59,37)} Notification: Performance of prepare postOptimizeDAE: time 0.0002465/1.853, allocations: 254.7 kB / 0.8627 GB, free: 43.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/1.853, allocations: 69.08 kB / 0.8628 GB, free: 43.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03173/1.885, allocations: 8.661 MB / 0.8712 GB, free: 34.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.013e-05/1.885, allocations: 3.984 kB / 0.8712 GB, free: 34.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/1.885, allocations: 0 / 0.8712 GB, free: 34.64 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/1.886, allocations: 363.5 kB / 0.8716 GB, free: 34.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/1.886, allocations: 21.62 kB / 0.8716 GB, free: 34.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005046/1.886, allocations: 20 kB / 0.8716 GB, free: 34.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/1.887, allocations: 68.92 kB / 0.8717 GB, free: 34.16 MB / 0.545 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005956/1.893, allocations: 4.768 MB / 0.8763 GB, free: 29.42 MB / 0.545 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Physiolibrary.Media.Blood.ArterialComposition could not be translated