Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.ElectrochemicalCell.conf.json 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-beta1 (/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) Running command: translateModel(Physiolibrary.Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ElectrochemicalCell") translateModel(Physiolibrary.Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 239.7 MB, free: 10.99 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.0009891/0.0009891, allocations: 110.2 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3303/0.3303, allocations: 36.67 MB / 376.7 MB, free: 41.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 67.89 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1196, allocations: 58.92 MB / 0.4935 GB, free: 0.8633 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.ElectrochemicalCell): time 0.2046/0.3243, allocations: 28.48 MB / 0.5213 GB, free: 30.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02479/0.3491, allocations: 28.51 MB / 0.5491 GB, free: 9.797 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002688/0.3518, allocations: 50.72 kB / 0.5492 GB, free: 9.773 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.3535, allocations: 0.586 MB / 0.5498 GB, free: 9.465 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005658/0.3592, allocations: 1.901 MB / 0.5516 GB, free: 8.324 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008963/0.3681, allocations: 3.388 MB / 0.5549 GB, free: 6.324 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00331/0.3715, allocations: 2.777 MB / 0.5576 GB, free: 5.016 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.3731, allocations: 1.438 MB / 0.559 GB, free: 4.375 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00154/0.3746, allocations: 1.281 MB / 0.5603 GB, free: 3.836 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.3761, allocations: 1.45 MB / 0.5617 GB, free: 2.668 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000285/0.3764, allocations: 172 kB / 0.5619 GB, free: 2.5 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009489/0.3859, allocations: 2.977 MB / 0.5648 GB, free: 15.83 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009296/0.3869, allocations: 0.525 MB / 0.5653 GB, free: 15.41 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001787/0.3887, allocations: 1.219 MB / 0.5665 GB, free: 14.3 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.4014, allocations: 5.742 MB / 0.5721 GB, free: 9.707 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4015, allocations: 0.6562 kB / 0.5721 GB, free: 9.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4015, allocations: 0 / 0.5721 GB, free: 9.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.724e-05/0.4016, allocations: 0 / 0.5721 GB, free: 9.707 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006543/0.4081, allocations: 3.075 MB / 0.5751 GB, free: 6.887 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4082, allocations: 12.03 kB / 0.5751 GB, free: 6.875 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.4103, allocations: 0.546 MB / 0.5756 GB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.4127, allocations: 1.271 MB / 0.5769 GB, free: 5.207 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.413, allocations: 232.1 kB / 0.5771 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000425/0.4134, allocations: 227.9 kB / 0.5773 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004435/0.4179, allocations: 2.671 MB / 0.5799 GB, free: 1.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.4179, allocations: 3.938 kB / 0.5799 GB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.4181, allocations: 92 kB / 0.58 GB, free: 1.887 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.724e-05/0.4182, allocations: 52 kB / 0.5801 GB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005055/0.4232, allocations: 3.31 MB / 0.5833 GB, free: 14.52 MB / 410.7 MB 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.01339/0.4367, allocations: 8.722 MB / 0.5918 GB, free: 5.457 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.4393, allocations: 2.014 MB / 0.5938 GB, free: 3.344 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.4406, allocations: 0.9328 MB / 0.5947 GB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.4515, allocations: 7.919 MB / 0.6024 GB, free: 9.633 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.4516, allocations: 47.88 kB / 0.6025 GB, free: 9.578 MB / 426.7 MB Notification: Performance of pre-optimization done (n=128): time 2.745e-06/0.4516, allocations: 4 kB / 0.6025 GB, free: 9.574 MB / 426.7 MB Notification: Performance of matching and sorting (n=181): time 0.02943/0.481, allocations: 8.237 MB / 0.6105 GB, free: 1.234 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.4811, allocations: 95.11 kB / 0.6106 GB, free: 1.125 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.4827, allocations: 1.362 MB / 0.6119 GB, free: 15.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001697/0.4829, allocations: 57.64 kB / 0.612 GB, free: 15.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006031/0.4835, allocations: 1.05 MB / 0.613 GB, free: 14.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004882/0.484, allocations: 0.6278 MB / 0.6136 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006314/0.4846, allocations: 476.8 kB / 0.6141 GB, free: 13.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.4847, allocations: 301.1 kB / 0.6144 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.4861, allocations: 0.8248 MB / 0.6152 GB, free: 12.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.488, allocations: 1.658 MB / 0.6168 GB, free: 10.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003463/0.4915, allocations: 2.622 MB / 0.6194 GB, free: 7.332 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.4915, allocations: 8 kB / 0.6194 GB, free: 7.324 MB / 442.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006538/0.4981, allocations: 3.054 MB / 0.6224 GB, free: 4.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.4981, allocations: 20 kB / 0.6224 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/0.4982, allocations: 28 kB / 0.6224 GB, free: 4.203 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003042/0.5012, allocations: 0.5143 MB / 0.6229 GB, free: 3.676 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/0.505, allocations: 0.8504 MB / 0.6237 GB, free: 2.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00808/0.5131, allocations: 7.467 MB / 0.631 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.515, allocations: 143.7 kB / 0.6312 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003073/0.5153, allocations: 151.8 kB / 0.6313 GB, free: 10.47 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009042/0.5163, allocations: 458 kB / 0.6317 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004052/0.5167, allocations: 161.9 kB / 0.6319 GB, free: 9.855 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006813/0.5235, allocations: 2.6 MB / 0.6344 GB, free: 7.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.5235, allocations: 20 kB / 0.6345 GB, free: 7.211 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.5235, allocations: 0 / 0.6345 GB, free: 7.211 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-05/0.5236, allocations: 11.95 kB / 0.6345 GB, free: 7.199 MB / 458.7 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! Found empty set of continuous equations. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005759/0.5293, allocations: 3.431 MB / 0.6378 GB, free: 3.574 MB / 458.7 MB Error: post-optimization module removeSimpleEquations (simulation) failed.