Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.conf.json 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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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) Running command: translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 117.4 kB / 16.42 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 186.6 kB / 17.35 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07343/0.07343, allocations: 15.3 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 425.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.08316, allocations: 53.62 MB / 479.5 MB, free: 5.801 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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/Chemical 1.4.1-master/package.mo:4740:7-4740: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(Chemical.Examples.ElectrochemicalCell): time 0.03485/0.118, allocations: 29.76 MB / 0.4973 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2021/0.3202, allocations: 28.69 MB / 0.5253 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.3214, allocations: 23.72 kB / 0.5253 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.3229, allocations: 0.6556 MB / 0.526 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004981/0.3279, allocations: 2.177 MB / 0.5281 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008778/0.3367, allocations: 3.854 MB / 0.5319 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003356/0.3401, allocations: 2.849 MB / 0.5347 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.3418, allocations: 1.673 MB / 0.5363 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001518/0.3434, allocations: 1.329 MB / 0.5376 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001586/0.345, allocations: 1.486 MB / 0.539 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000313/0.3453, allocations: 265.1 kB / 0.5393 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00918/0.3545, allocations: 3.104 MB / 0.5423 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005516/0.3551, allocations: 0.6067 MB / 0.5429 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001343/0.3564, allocations: 1.298 MB / 0.5442 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.3697, allocations: 6.002 MB / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3697, allocations: 0 / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3697, allocations: 0 / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.911e-05/0.3697, allocations: 2.688 kB / 0.55 GB, free: 14.29 MB / 398.1 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.00544/0.3752, allocations: 3.078 MB / 0.553 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3752, allocations: 14.72 kB / 0.5531 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00217/0.3774, allocations: 0.5479 MB / 0.5536 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.3794, allocations: 1.295 MB / 0.5549 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.3796, allocations: 224.3 kB / 0.5551 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000333/0.3799, allocations: 223.8 kB / 0.5553 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.384, allocations: 2.668 MB / 0.5579 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.3841, allocations: 6.703 kB / 0.5579 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.3843, allocations: 88 kB / 0.558 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/0.3844, allocations: 52 kB / 0.558 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004762/0.3891, allocations: 3.306 MB / 0.5613 GB, free: 2.609 MB / 398.1 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.01233/0.4015, allocations: 8.644 MB / 0.5697 GB, free: 9.656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.404, allocations: 2.005 MB / 0.5717 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.4053, allocations: 0.9251 MB / 0.5726 GB, free: 6.629 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.4157, allocations: 7.892 MB / 0.5803 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.4157, allocations: 43.88 kB / 0.5803 GB, free: 13.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 2.745e-06/0.4157, allocations: 2.656 kB / 0.5803 GB, free: 13.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02978/0.4455, allocations: 8.196 MB / 0.5883 GB, free: 5.645 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.4456, allocations: 95.11 kB / 0.5884 GB, free: 5.531 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.4473, allocations: 1.358 MB / 0.5897 GB, free: 4.156 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.4475, allocations: 53.7 kB / 0.5898 GB, free: 4.098 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006652/0.4482, allocations: 1.053 MB / 0.5908 GB, free: 3.031 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000555/0.4488, allocations: 0.6239 MB / 0.5914 GB, free: 2.398 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007077/0.4495, allocations: 480.8 kB / 0.5919 GB, free: 1.922 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.4496, allocations: 309.1 kB / 0.5922 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.451, allocations: 0.8093 MB / 0.593 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/0.453, allocations: 1.654 MB / 0.5946 GB, free: 14.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003574/0.4566, allocations: 2.611 MB / 0.5971 GB, free: 11.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.809e-05/0.4566, allocations: 13.53 kB / 0.5971 GB, free: 11.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006859/0.4635, allocations: 3.039 MB / 0.6001 GB, free: 8.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.4635, allocations: 19.94 kB / 0.6001 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.743e-05/0.4636, allocations: 28 kB / 0.6002 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003216/0.4668, allocations: 0.513 MB / 0.6007 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003719/0.4706, allocations: 0.7958 MB / 0.6014 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008966/0.4795, allocations: 8.046 MB / 0.6093 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.4812, allocations: 94.55 kB / 0.6094 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002759/0.4815, allocations: 140 kB / 0.6095 GB, free: 14.62 MB / 462.1 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.000841/0.4824, allocations: 456.4 kB / 0.61 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.4828, allocations: 165.9 kB / 0.6101 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006486/0.4893, allocations: 2.58 MB / 0.6126 GB, free: 11.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/0.4893, allocations: 7.969 kB / 0.6126 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4893, allocations: 2.656 kB / 0.6126 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.4897, allocations: 223 kB / 0.6129 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.49, allocations: 32 kB / 0.6129 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009996/0.491, allocations: 39.98 kB / 0.6129 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/0.4913, allocations: 153.7 kB / 0.6131 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006683/0.498, allocations: 2.395 MB / 0.6154 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004427/0.5024, allocations: 2.918 MB / 0.6183 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001216/0.5037, allocations: 0.7886 MB / 0.619 GB, free: 4.875 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.5048, allocations: 0.8954 MB / 0.6199 GB, free: 3.98 MB / 462.1 MB Notification: Performance of Backend: time 4.41e-07/0.5048, allocations: 0 / 0.6199 GB, free: 3.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00771/0.5126, allocations: 3.493 MB / 0.6233 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of SimCode: time 0.005208/0.5178, allocations: 3.946 MB / 0.6272 GB, free: 12.61 MB / 478.1 MB Notification: Performance of Templates: time 0.06778/0.5856, allocations: 48.37 MB / 0.6744 GB, free: 12.47 MB / 0.5137 GB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)