Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Media.Blood.VenousComposition.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.VenousComposition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.Blood.VenousComposition") translateModel(Physiolibrary.Media.Blood.VenousComposition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.Blood.VenousComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08373/0.08373, allocations: 15.29 MB / 31.59 MB, free: 4.129 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.00109/0.001091, allocations: 96.73 kB / 36.59 MB, free: 3.176 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.001241/0.001241, allocations: 190.5 kB / 41.7 MB, free: 7.141 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.375/1.375, allocations: 222.9 MB / 269.6 MB, free: 6.871 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1482/0.1482, allocations: 23.34 MB / 347.2 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003257/0.003257, allocations: 114 kB / 493.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3025, allocations: 59.37 MB / 0.5397 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Media.Blood.VenousComposition): time 0.01828/0.3208, allocations: 20.82 MB / 0.56 GB, free: 7.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005146/0.326, allocations: 4.51 MB / 0.5644 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.3261, allocations: 1.156 kB / 0.5644 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003667/0.3265, allocations: 81.98 kB / 0.5645 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003757/0.3303, allocations: 1.579 MB / 0.5661 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.332, allocations: 0.789 MB / 0.5668 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008458/0.3329, allocations: 0.9459 MB / 0.5678 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.148e-05/0.333, allocations: 45.05 kB / 0.5678 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.3345, allocations: 0.9024 MB / 0.5687 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1306/0.4651, allocations: 23.69 MB / 0.5918 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002378/0.4653, allocations: 36 kB / 0.5918 GB, free: 10.44 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4246/0.89, allocations: 77.67 MB / 0.6677 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004141/0.8904, allocations: 267.2 kB / 0.6679 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006116/0.891, allocations: 405.9 kB / 0.6683 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004649/0.8957, allocations: 1.997 MB / 0.6703 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.8957, allocations: 7.938 kB / 0.6703 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8957, allocations: 0 / 0.6703 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.717e-06/0.8957, allocations: 0 / 0.6703 GB, free: 9.648 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.004375/0.9001, allocations: 1.209 MB / 0.6715 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.9001, allocations: 8.031 kB / 0.6715 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.9003, allocations: 72 kB / 0.6715 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.9005, allocations: 246.4 kB / 0.6718 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.9005, allocations: 49.31 kB / 0.6718 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/0.9006, allocations: 64 kB / 0.6719 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.9035, allocations: 3.309 MB / 0.6751 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.9036, allocations: 7.938 kB / 0.6751 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.9036, allocations: 24 kB / 0.6752 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.445e-05/0.9037, allocations: 85.95 kB / 0.6752 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00547/0.9092, allocations: 6.567 MB / 0.6816 GB, free: 13.9 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.009349/0.9186, allocations: 8.324 MB / 0.6898 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.9214, allocations: 2.859 MB / 0.6926 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002279/0.9236, allocations: 2.696 MB / 0.6952 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001782/0.9254, allocations: 1.826 MB / 0.697 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.9255, allocations: 51.5 kB / 0.697 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=138): time 3.176e-06/0.9255, allocations: 0 / 0.697 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=138): time 0.03438/0.9599, allocations: 12.86 MB / 0.7096 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.96, allocations: 145.6 kB / 0.7097 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.9603, allocations: 283 kB / 0.71 GB, free: 376 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.262e-05/0.9604, allocations: 41.69 kB / 0.71 GB, free: 328 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.9606, allocations: 315.7 kB / 0.7103 GB, free: 4 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003682/0.9609, allocations: 469.2 kB / 0.7108 GB, free: 15.54 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/0.9613, allocations: 270.8 kB / 0.711 GB, free: 15.27 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.9614, allocations: 317.9 kB / 0.7114 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.9636, allocations: 2.113 MB / 0.7134 GB, free: 12.84 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002664/0.9663, allocations: 2.514 MB / 0.7159 GB, free: 10.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004909/0.9712, allocations: 4.934 MB / 0.7207 GB, free: 5.035 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.9712, allocations: 4 kB / 0.7207 GB, free: 5.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.209/1.18, allocations: 7.163 MB / 0.7277 GB, free: 173.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/1.18, allocations: 9.625 kB / 0.7277 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/1.18, allocations: 13.75 kB / 0.7277 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3169/1.497, allocations: 63.46 MB / 0.7897 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/1.498, allocations: 173.8 kB / 0.7899 GB, free: 118 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007091/1.499, allocations: 131.1 kB / 0.79 GB, free: 117.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006577/1.499, allocations: 131.4 kB / 0.7901 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/1.499, allocations: 128 kB / 0.7902 GB, free: 117.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001647/1.501, allocations: 2.281 MB / 0.7925 GB, free: 115.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001588/1.503, allocations: 2.51 MB / 0.7949 GB, free: 112.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003261/1.506, allocations: 4.935 MB / 0.7997 GB, free: 107.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.771e-06/1.506, allocations: 4 kB / 0.7997 GB, free: 107.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization_lambda0): time 0.00509/1.511, allocations: 7.153 MB / 0.8067 GB, free: 100.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/1.511, allocations: 8 kB / 0.8067 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/1.511, allocations: 16 kB / 0.8067 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3081/1.819, allocations: 56.52 MB / 0.8619 GB, free: 44.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/1.82, allocations: 179.7 kB / 0.8621 GB, free: 43.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006961/1.82, allocations: 125.1 kB / 0.8622 GB, free: 43.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/1.821, allocations: 106.9 kB / 0.8623 GB, free: 43.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001699/1.821, allocations: 132.4 kB / 0.8624 GB, free: 43.48 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.0002599/1.822, allocations: 259.1 kB / 0.8627 GB, free: 43.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/1.822, allocations: 67.16 kB / 0.8628 GB, free: 43.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03373/1.856, allocations: 8.669 MB / 0.8712 GB, free: 34.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.976e-05/1.856, allocations: 3.984 kB / 0.8712 GB, free: 34.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.856, allocations: 0 / 0.8712 GB, free: 34.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007629/1.856, allocations: 361.8 kB / 0.8716 GB, free: 34.12 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/1.857, allocations: 16 kB / 0.8716 GB, free: 34.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006057/1.857, allocations: 20 kB / 0.8716 GB, free: 34.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/1.857, allocations: 76.86 kB / 0.8717 GB, free: 34.01 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.006177/1.864, allocations: 4.763 MB / 0.8763 GB, free: 29.28 MB / 0.545 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Physiolibrary.Media.Blood.VenousComposition could not be translated