Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001645, allocations: 182.4 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.405/1.405, 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.0009887/0.0009887, allocations: 107.7 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.3473/0.3473, allocations: 36.67 MB / 376.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 67.89 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1165, allocations: 58.92 MB / 0.4935 GB, free: 0.8438 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.2473/0.3638, allocations: 28.23 MB / 0.521 GB, free: 30.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02586/0.3897, allocations: 24.74 MB / 0.5452 GB, free: 12.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002845/0.3926, allocations: 46.62 kB / 0.5452 GB, free: 12.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.3944, allocations: 0.5407 MB / 0.5458 GB, free: 12.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006626/0.401, allocations: 1.62 MB / 0.5474 GB, free: 11.49 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01096/0.412, allocations: 2.996 MB / 0.5503 GB, free: 9.723 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004792/0.4169, allocations: 2.634 MB / 0.5529 GB, free: 8.473 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002458/0.4193, allocations: 1.528 MB / 0.5543 GB, free: 7.781 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.4221, allocations: 1.196 MB / 0.5555 GB, free: 7.363 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002956/0.4251, allocations: 1.394 MB / 0.5569 GB, free: 6.785 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007688/0.4259, allocations: 175.2 kB / 0.557 GB, free: 6.785 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01631/0.4422, allocations: 2.563 MB / 0.5595 GB, free: 4.688 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001672/0.4439, allocations: 0.5223 MB / 0.5601 GB, free: 4.277 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002183/0.4461, allocations: 1.195 MB / 0.5612 GB, free: 3.184 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.4622, allocations: 5.291 MB / 0.5664 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.4622, allocations: 7.938 kB / 0.5664 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4622, allocations: 0.6094 kB / 0.5664 GB, free: 15.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001334/0.4624, allocations: 0 / 0.5664 GB, free: 15.02 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.008742/0.4711, allocations: 2.959 MB / 0.5693 GB, free: 12.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.4712, allocations: 16.03 kB / 0.5693 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002413/0.4736, allocations: 0.4983 MB / 0.5698 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003166/0.4768, allocations: 1.258 MB / 0.571 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.4772, allocations: 221.8 kB / 0.5712 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005938/0.4778, allocations: 225.3 kB / 0.5714 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005472/0.4832, allocations: 2.694 MB / 0.5741 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.448e-05/0.4833, allocations: 0 / 0.5741 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.4836, allocations: 88 kB / 0.5742 GB, free: 7.859 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.6e-05/0.4836, allocations: 52 kB / 0.5742 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005438/0.4891, allocations: 3.172 MB / 0.5773 GB, free: 4.633 MB / 394.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.01727/0.5064, allocations: 9.295 MB / 0.5864 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.5093, allocations: 1.853 MB / 0.5882 GB, free: 9.043 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.5108, allocations: 0.9039 MB / 0.5891 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.5243, allocations: 7.485 MB / 0.5964 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.172e-05/0.5245, allocations: 59.44 kB / 0.5964 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00124/0.5257, allocations: 210.1 kB / 0.5966 GB, free: 15.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=113): time 9.909e-06/0.5257, allocations: 0 / 0.5966 GB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=161): time 0.03808/0.5638, allocations: 9.581 MB / 0.606 GB, free: 5.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.5639, allocations: 120.1 kB / 0.6061 GB, free: 5.773 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.5658, allocations: 1.345 MB / 0.6074 GB, free: 4.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002884/0.5661, allocations: 57.7 kB / 0.6075 GB, free: 4.348 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007356/0.5668, allocations: 1.046 MB / 0.6085 GB, free: 3.285 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006692/0.5675, allocations: 0.5663 MB / 0.6091 GB, free: 2.711 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000908/0.5684, allocations: 472.4 kB / 0.6095 GB, free: 2.242 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.5686, allocations: 305.1 kB / 0.6098 GB, free: 1.941 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.5702, allocations: 0.8519 MB / 0.6106 GB, free: 1.086 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.5724, allocations: 1.716 MB / 0.6123 GB, free: 14.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003943/0.5763, allocations: 2.709 MB / 0.615 GB, free: 11.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-05/0.5764, allocations: 12 kB / 0.615 GB, free: 11.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009525/0.5859, allocations: 3.534 MB / 0.6184 GB, free: 8.293 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.401e-05/0.586, allocations: 23.94 kB / 0.6184 GB, free: 8.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.982e-05/0.5861, allocations: 28 kB / 0.6185 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005424/0.5915, allocations: 1.198 MB / 0.6196 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/0.5935, allocations: 0.5148 MB / 0.6201 GB, free: 6.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01/0.6035, allocations: 7.025 MB / 0.627 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.6058, allocations: 135.7 kB / 0.6271 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005217/0.6063, allocations: 140 kB / 0.6273 GB, free: 14.78 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001283/0.6076, allocations: 455.2 kB / 0.6277 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006133/0.6083, allocations: 158.1 kB / 0.6278 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008928/0.6172, allocations: 2.92 MB / 0.6307 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.6173, allocations: 16 kB / 0.6307 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.6173, allocations: 7.984 kB / 0.6307 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.04e-05/0.6173, allocations: 7.969 kB / 0.6307 GB, free: 11.22 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6299, allocations: 4.944 MB / 0.6356 GB, free: 6.172 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/0.63, allocations: 4 kB / 0.6356 GB, free: 6.168 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.6312, allocations: 255.9 kB / 0.6358 GB, free: 5.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005243/0.6365, allocations: 1.077 MB / 0.6369 GB, free: 4.824 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003051/0.6368, allocations: 63.95 kB / 0.6369 GB, free: 4.762 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008441/0.6453, allocations: 6.398 MB / 0.6432 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6453, allocations: 4 kB / 0.6432 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03712/0.6825, allocations: 15.01 MB / 0.6578 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004756/0.683, allocations: 219.1 kB / 0.658 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004389/0.6835, allocations: 31.94 kB / 0.6581 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.6849, allocations: 71.95 kB / 0.6581 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005698/0.6855, allocations: 141.2 kB / 0.6583 GB, free: 13.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002844/0.6858, allocations: 79.89 kB / 0.6583 GB, free: 13.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001563/0.6874, allocations: 0.8843 MB / 0.6592 GB, free: 12.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6874, allocations: 0 / 0.6592 GB, free: 12.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005925/0.6933, allocations: 1.292 MB / 0.6605 GB, free: 11.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003537/0.6969, allocations: 1.114 MB / 0.6616 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00632/0.7032, allocations: 2.798 MB / 0.6643 GB, free: 7.711 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/0.7032, allocations: 3.938 kB / 0.6643 GB, free: 7.707 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002985/0.7062, allocations: 1.478 MB / 0.6657 GB, free: 6.172 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/0.7084, allocations: 272.6 kB / 0.666 GB, free: 5.906 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/0.7179, allocations: 5.757 MB / 0.6716 GB, free: 40 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/0.7196, allocations: 1.442 MB / 0.673 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002256/0.7219, allocations: 415.8 kB / 0.6734 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008024/0.7227, allocations: 239.3 kB / 0.6737 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of SimCode: time 8.22e-07/0.7227, allocations: 0 / 0.6737 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of Templates: time 0.2633/0.986, allocations: 44.53 MB / 0.7171 GB, free: 141.8 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)