Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary.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.Fluid.Examples.BloodGasesTransport.BloodyMary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary") translateModel(Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1249/0.1249, allocations: 15.28 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.0009675/0.0009675, allocations: 96.75 kB / 36.59 MB, free: 3.184 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.001194/0.001194, 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.382/1.382, 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.1295/0.1295, allocations: 23.35 MB / 347.2 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 111.8 kB / 479.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3012, allocations: 59.35 MB / 0.5263 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary): time 0.5022/0.8035, allocations: 218.9 MB / 0.74 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.1113/0.9148, allocations: 122.5 MB / 0.8596 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00755/0.9224, allocations: 129.8 kB / 0.8597 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01104/0.9335, allocations: 3.476 MB / 0.8631 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.02912/0.9626, allocations: 12.14 MB / 0.875 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.04244/1.005, allocations: 18.52 MB / 0.8931 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.02476/1.03, allocations: 22.42 MB / 0.915 GB, free: 8.234 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.05081/1.081, allocations: 39.6 MB / 0.9536 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.667/3.748, allocations: 384.5 MB / 1.329 GB, free: 207.3 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6429/4.391, allocations: 138 MB / 1.464 GB, free: 136.1 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0112/4.402, allocations: 3.824 MB / 1.468 GB, free: 132.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.02/8.422, allocations: 0.6285 GB / 2.096 GB, free: 120.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.02082/8.443, allocations: 19.35 MB / 2.115 GB, free: 108.5 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.03556/8.479, allocations: 21.64 MB / 2.136 GB, free: 90.88 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.09221/8.571, allocations: 75.71 MB / 2.21 GB, free: 19.62 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/8.571, allocations: 3.984 kB / 2.21 GB, free: 19.61 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.154e-06/8.571, allocations: 0 / 2.21 GB, free: 19.61 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0017/8.573, allocations: 0 / 2.21 GB, free: 19.61 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8166 * Number of variables: 8166 Notification: Performance of Generate backend data structure: time 0.6519/9.224, allocations: 36.08 MB / 2.245 GB, free: 384.4 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/9.224, allocations: 12.28 kB / 2.245 GB, free: 384.4 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01991/9.244, allocations: 3.843 MB / 2.249 GB, free: 382.7 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03745/9.282, allocations: 18.11 MB / 2.267 GB, free: 374.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002592/9.284, allocations: 2.738 MB / 2.269 GB, free: 372.9 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.011/9.296, allocations: 2.797 MB / 2.272 GB, free: 371.9 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1284/9.424, allocations: 81.56 MB / 2.352 GB, free: 295.8 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001357/9.425, allocations: 196.9 kB / 2.352 GB, free: 295.6 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01038/9.436, allocations: 1.173 MB / 2.353 GB, free: 294.4 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/9.437, allocations: 1.614 MB / 2.355 GB, free: 292.8 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1521/9.589, allocations: 123.2 MB / 2.475 GB, free: 169.5 MB / 0.8419 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.6171/10.21, allocations: 315.3 MB / 2.783 GB, free: 203.2 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06396/10.27, allocations: 53.51 MB / 2.835 GB, free: 175 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04948/10.32, allocations: 43.24 MB / 2.877 GB, free: 150.1 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1765/10.5, allocations: 136.7 MB / 3.011 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/10.5, allocations: 260.3 kB / 3.011 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02156/10.52, allocations: 4.728 MB / 3.016 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3087): time 5.814e-05/10.52, allocations: 0 / 3.016 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3087): time 0.5485/11.07, allocations: 132.9 MB / 3.146 GB, free: 297.2 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/11.07, allocations: 289.1 kB / 3.146 GB, free: 296.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01959/11.09, allocations: 15.89 MB / 3.161 GB, free: 281.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.005438/11.09, allocations: 421.7 kB / 3.162 GB, free: 281 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.00551/11.1, allocations: 11.42 MB / 3.173 GB, free: 269.6 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.01024/11.11, allocations: 10.62 MB / 3.183 GB, free: 259 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01901/11.13, allocations: 7.672 MB / 3.191 GB, free: 251.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 3.657e-05/11.13, allocations: 309.1 kB / 3.191 GB, free: 251.1 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04407/11.17, allocations: 39.34 MB / 3.23 GB, free: 211.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05223/11.22, allocations: 50.55 MB / 3.279 GB, free: 156.6 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.398/13.62, allocations: 346.8 MB / 3.618 GB, free: 324.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003551/13.62, allocations: 101.8 kB / 3.618 GB, free: 324.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4958) (initialization): time 0.2086/13.83, allocations: 100.9 MB / 3.716 GB, free: 284.1 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002353/13.83, allocations: 154.2 kB / 3.716 GB, free: 284.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005467/13.83, allocations: 347.4 kB / 3.717 GB, free: 284.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1707/14, allocations: 16.56 MB / 3.733 GB, free: 269.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02908/14.03, allocations: 7.841 MB / 3.741 GB, free: 261.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01669/14.05, allocations: 19.4 MB / 3.76 GB, free: 242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0276/14.07, allocations: 1.696 MB / 3.761 GB, free: 240.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008543/14.08, allocations: 2.472 MB / 3.764 GB, free: 237.9 MB / 0.8419 GB Warning: Assuming fixed start value for the following 18 variables: pulmonaryArteries.extraSubstanceAmounts[1]:VARIABLE(start = pulmonaryArteries.tm_start * pulmonaryArteries.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [3] pulmonaryArteries.extraSubstanceAmounts[2]:VARIABLE(start = pulmonaryArteries.tm_start * pulmonaryArteries.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [3] pulmonaryArteries.extraSubstanceAmounts[3]:VARIABLE(start = pulmonaryArteries.tm_start * pulmonaryArteries.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [3] pulmonaryVeins.extraSubstanceAmounts[1]:VARIABLE(start = pulmonaryVeins.tm_start * pulmonaryVeins.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [3] pulmonaryVeins.extraSubstanceAmounts[2]:VARIABLE(start = pulmonaryVeins.tm_start * pulmonaryVeins.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [3] pulmonaryVeins.extraSubstanceAmounts[3]:VARIABLE(start = pulmonaryVeins.tm_start * pulmonaryVeins.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [3] systemicArteries.extraSubstanceAmounts[1]:VARIABLE(start = systemicArteries.tm_start * systemicArteries.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [3] systemicArteries.extraSubstanceAmounts[2]:VARIABLE(start = systemicArteries.tm_start * systemicArteries.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [3] systemicArteries.extraSubstanceAmounts[3]:VARIABLE(start = systemicArteries.tm_start * systemicArteries.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [3] systemicVeins.extraSubstanceAmounts[1]:VARIABLE(start = systemicVeins.tm_start * systemicVeins.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [3] systemicVeins.extraSubstanceAmounts[2]:VARIABLE(start = systemicVeins.tm_start * systemicVeins.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [3] systemicVeins.extraSubstanceAmounts[3]:VARIABLE(start = systemicVeins.tm_start * systemicVeins.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [3] respiratoryUnit[1].pulmCapysVentilated.extraSubstanceAmounts[1]:VARIABLE(start = respiratoryUnit[1].pulmCapysVentilated.tm_start * respiratoryUnit[1].pulmCapysVentilated.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [1,3] respiratoryUnit[1].pulmCapysVentilated.extraSubstanceAmounts[2]:VARIABLE(start = respiratoryUnit[1].pulmCapysVentilated.tm_start * respiratoryUnit[1].pulmCapysVentilated.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [1,3] respiratoryUnit[1].pulmCapysVentilated.extraSubstanceAmounts[3]:VARIABLE(start = respiratoryUnit[1].pulmCapysVentilated.tm_start * respiratoryUnit[1].pulmCapysVentilated.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [1,3] tissueUnit[1].systemicCapillaries.extraSubstanceAmounts[1]:VARIABLE(start = tissueUnit[1].systemicCapillaries.tm_start * tissueUnit[1].systemicCapillaries.C_start[1] fixed = true ) "Current amount of extra substances" type: Real [1,3] tissueUnit[1].systemicCapillaries.extraSubstanceAmounts[2]:VARIABLE(start = tissueUnit[1].systemicCapillaries.tm_start * tissueUnit[1].systemicCapillaries.C_start[2] fixed = true ) "Current amount of extra substances" type: Real [1,3] tissueUnit[1].systemicCapillaries.extraSubstanceAmounts[3]:VARIABLE(start = tissueUnit[1].systemicCapillaries.tm_start * tissueUnit[1].systemicCapillaries.C_start[3] fixed = true ) "Current amount of extra substances" type: Real [1,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1571 * 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 (4024): * Single equations (assignments): 3985 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 19 * 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): 19 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,3), (4,28), (1,1), (1,3), (5,10), (1,3), (1,1), (6,9), (1,3), (6,9), (1,3), (1,2), (5,10), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.02429/14.11, allocations: 10.73 MB / 3.774 GB, free: 227.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008601/14.12, allocations: 1.788 MB / 3.776 GB, free: 225.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.216/14.33, allocations: 95.31 MB / 3.869 GB, free: 130.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005967/14.33, allocations: 115.5 kB / 3.869 GB, free: 130.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.417e-05/14.33, allocations: 0 / 3.869 GB, free: 130.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02076/14.35, allocations: 7.808 MB / 3.877 GB, free: 122.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008364/14.36, allocations: 0.6092 MB / 3.877 GB, free: 122 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01758/14.38, allocations: 1.026 MB / 3.878 GB, free: 120.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009078/14.39, allocations: 2.498 MB / 3.881 GB, free: 118.4 MB / 0.8419 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.3598/14.75, allocations: 45.36 MB / 3.925 GB, free: 318.9 MB / 0.8419 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Physiolibrary.Fluid.Examples.BloodGasesTransport.BloodyMary could not be translated