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.08255/0.08255, allocations: 15.29 MB / 31.6 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.001041/0.001041, allocations: 97.55 kB / 36.59 MB, free: 3.152 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.00121/0.00121, allocations: 194.1 kB / 41.7 MB, free: 7.117 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.436/1.436, 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.1366/0.1366, allocations: 23.35 MB / 347.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 126 kB / 493.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3661, allocations: 59.36 MB / 0.5397 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Media.Blood.VenousComposition): time 0.02104/0.3872, allocations: 20.81 MB / 0.56 GB, free: 7.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005926/0.3931, allocations: 4.507 MB / 0.5644 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003622/0.3935, allocations: 0 / 0.5644 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004389/0.3941, allocations: 91.03 kB / 0.5645 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004842/0.3989, allocations: 1.665 MB / 0.5661 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.4012, allocations: 0.795 MB / 0.5669 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001304/0.4025, allocations: 0.9487 MB / 0.5678 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.4026, allocations: 33.08 kB / 0.5679 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002074/0.4047, allocations: 0.9102 MB / 0.5688 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1322/0.5369, allocations: 23.69 MB / 0.5919 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003773/0.5373, allocations: 36 kB / 0.5919 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5528/1.09, allocations: 77.67 MB / 0.6678 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003593/1.09, allocations: 267.2 kB / 0.668 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006499/1.091, allocations: 402 kB / 0.6684 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004871/1.096, allocations: 2.016 MB / 0.6704 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.096, allocations: 3.938 kB / 0.6704 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.293e-06/1.096, allocations: 3.938 kB / 0.6704 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.702e-05/1.096, allocations: 0 / 0.6704 GB, free: 9.551 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.004164/1.1, allocations: 1.237 MB / 0.6716 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/1.1, allocations: 8.031 kB / 0.6716 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/1.1, allocations: 72.42 kB / 0.6717 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/1.101, allocations: 254.4 kB / 0.6719 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.647e-05/1.101, allocations: 45.31 kB / 0.672 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.214e-05/1.101, allocations: 60 kB / 0.672 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003145/1.104, allocations: 3.325 MB / 0.6753 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/1.104, allocations: 3.938 kB / 0.6753 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/1.104, allocations: 20 kB / 0.6753 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-05/1.104, allocations: 89.95 kB / 0.6754 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005728/1.11, allocations: 6.563 MB / 0.6818 GB, free: 13.76 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.009984/1.12, allocations: 8.317 MB / 0.6899 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/1.123, allocations: 2.859 MB / 0.6927 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/1.125, allocations: 2.703 MB / 0.6953 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001869/1.127, allocations: 1.818 MB / 0.6971 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/1.127, allocations: 51.48 kB / 0.6972 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=138): time 2.786e-06/1.127, allocations: 0 / 0.6972 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=138): time 0.03523/1.162, allocations: 12.87 MB / 0.7097 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/1.162, allocations: 141.5 kB / 0.7099 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/1.163, allocations: 283.2 kB / 0.7101 GB, free: 244 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.403e-05/1.163, allocations: 41.7 kB / 0.7102 GB, free: 196 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/1.163, allocations: 337.2 kB / 0.7105 GB, free: 15.85 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003728/1.163, allocations: 495.7 kB / 0.711 GB, free: 15.36 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004188/1.164, allocations: 270.9 kB / 0.7112 GB, free: 15.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001063/1.164, allocations: 313.7 kB / 0.7115 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/1.166, allocations: 2.113 MB / 0.7136 GB, free: 12.67 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002433/1.168, allocations: 2.514 MB / 0.7161 GB, free: 9.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004881/1.173, allocations: 4.937 MB / 0.7209 GB, free: 4.867 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/1.173, allocations: 4 kB / 0.7209 GB, free: 4.863 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.2401/1.414, allocations: 7.166 MB / 0.7279 GB, free: 173.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/1.414, allocations: 9.594 kB / 0.7279 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.481e-05/1.414, allocations: 16.97 kB / 0.7279 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3118/1.725, allocations: 63.46 MB / 0.7899 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005884/1.726, allocations: 172 kB / 0.79 GB, free: 118.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000793/1.727, allocations: 136.2 kB / 0.7902 GB, free: 117.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007766/1.728, allocations: 136.1 kB / 0.7903 GB, free: 117.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/1.728, allocations: 131.4 kB / 0.7904 GB, free: 117.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001823/1.73, allocations: 2.274 MB / 0.7926 GB, free: 115.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001744/1.732, allocations: 2.514 MB / 0.7951 GB, free: 112.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003507/1.735, allocations: 4.932 MB / 0.7999 GB, free: 107.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.102e-05/1.735, allocations: 6.812 kB / 0.7999 GB, free: 107.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=192) (initialization_lambda0): time 0.005599/1.741, allocations: 7.155 MB / 0.8069 GB, free: 100.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/1.741, allocations: 8 kB / 0.8069 GB, free: 100.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/1.741, allocations: 12.84 kB / 0.8069 GB, free: 100.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2972/2.038, allocations: 56.53 MB / 0.8621 GB, free: 44.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005241/2.039, allocations: 175.7 kB / 0.8623 GB, free: 43.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006582/2.039, allocations: 129.1 kB / 0.8624 GB, free: 43.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006919/2.04, allocations: 114.7 kB / 0.8625 GB, free: 43.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001766/2.04, allocations: 128 kB / 0.8626 GB, free: 43.57 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.0002474/2.04, allocations: 262.7 kB / 0.8629 GB, free: 43.31 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/2.041, allocations: 63.58 kB / 0.863 GB, free: 43.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03296/2.074, allocations: 8.663 MB / 0.8714 GB, free: 34.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.294e-05/2.074, allocations: 3.984 kB / 0.8714 GB, free: 34.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/2.074, allocations: 0 / 0.8714 GB, free: 34.58 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005615/2.074, allocations: 364.8 kB / 0.8718 GB, free: 34.21 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/2.074, allocations: 24 kB / 0.8718 GB, free: 34.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/2.075, allocations: 19.98 kB / 0.8718 GB, free: 34.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/2.075, allocations: 76.86 kB / 0.8719 GB, free: 34.09 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.006034/2.081, allocations: 4.76 MB / 0.8765 GB, free: 29.35 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