Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_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: "" <> buildModelFMU(Chemical.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.134/1.134, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1574/0.1574, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 55.91 kB / 370.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0753/0.07651, allocations: 53.61 MB / 424 MB, free: 14.22 MB / 366.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.H2O_ElectrochemicalCell): time 0.2539/0.3305, allocations: 27.83 MB / 451.9 MB, free: 39.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.3435, allocations: 19.38 MB / 471.2 MB, free: 29.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005488/0.344, allocations: 17.09 kB / 471.3 MB, free: 29.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008455/0.3449, allocations: 0.4984 MB / 471.8 MB, free: 29.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00187/0.3468, allocations: 1.222 MB / 473 MB, free: 28.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004339/0.3511, allocations: 2.828 MB / 475.8 MB, free: 27.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.3525, allocations: 2.091 MB / 477.9 MB, free: 26.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00097/0.3534, allocations: 1.344 MB / 479.2 MB, free: 25.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005887/0.354, allocations: 0.9069 MB / 480.2 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007941/0.3548, allocations: 1.047 MB / 481.2 MB, free: 24.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002276/0.3551, allocations: 199.5 kB / 481.4 MB, free: 24.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004205/0.3593, allocations: 2.062 MB / 483.5 MB, free: 24.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002616/0.3596, allocations: 475.8 kB / 483.9 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005945/0.3602, allocations: 0.9828 MB / 484.9 MB, free: 23.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004221/0.3644, allocations: 4.157 MB / 489.1 MB, free: 21.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3644, allocations: 5.312 kB / 489.1 MB, free: 21.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3644, allocations: 0 / 489.1 MB, free: 21.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.3644, allocations: 4 kB / 489.1 MB, free: 21.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.00314/0.3676, allocations: 2.353 MB / 491.4 MB, free: 20.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.3676, allocations: 9.156 kB / 491.4 MB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002049/0.3678, allocations: 238.7 kB / 491.7 MB, free: 19.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/0.3691, allocations: 436.9 kB / 492.1 MB, free: 19.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.3703, allocations: 1.041 MB / 493.1 MB, free: 19.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.179e-05/0.3704, allocations: 187.5 kB / 493.3 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.3706, allocations: 172.1 kB / 493.5 MB, free: 19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002318/0.3729, allocations: 2.214 MB / 495.7 MB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.373, allocations: 3.984 kB / 495.7 MB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.3731, allocations: 66.25 kB / 495.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.3731, allocations: 43 kB / 495.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002743/0.3759, allocations: 2.677 MB / 498.5 MB, free: 17.14 MB / 366.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.007192/0.3831, allocations: 7.247 MB / 0.4939 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3843, allocations: 1.186 MB / 0.495 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.385, allocations: 0.5496 MB / 0.4956 GB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0052/0.3902, allocations: 5.126 MB / 0.5006 GB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.3902, allocations: 40.77 kB / 0.5006 GB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003014/0.3905, allocations: 110.3 kB / 0.5007 GB, free: 5.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.053e-06/0.3905, allocations: 0 / 0.5007 GB, free: 5.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01373/0.4043, allocations: 4.807 MB / 0.5054 GB, free: 1.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.4043, allocations: 119.9 kB / 0.5055 GB, free: 1.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.4054, allocations: 1.47 MB / 0.507 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.4054, allocations: 41.7 kB / 0.507 GB, free: 15.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004449/0.4059, allocations: 0.8932 MB / 0.5079 GB, free: 14.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.4061, allocations: 339.3 kB / 0.5082 GB, free: 14.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003944/0.4065, allocations: 355.1 kB / 0.5085 GB, free: 14.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.225e-05/0.4066, allocations: 301.1 kB / 0.5088 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008053/0.4074, allocations: 0.6324 MB / 0.5094 GB, free: 13.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.4086, allocations: 1.337 MB / 0.5108 GB, free: 11.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.4105, allocations: 1.917 MB / 0.5126 GB, free: 9.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4105, allocations: 8 kB / 0.5126 GB, free: 9.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00441/0.415, allocations: 2.362 MB / 0.5149 GB, free: 6.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.415, allocations: 19.94 kB / 0.515 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.415, allocations: 24 kB / 0.515 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.4171, allocations: 375.5 kB / 0.5153 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.4193, allocations: 0.5656 MB / 0.5159 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04551/0.4648, allocations: 7.913 MB / 0.5236 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4665, allocations: 87.7 kB / 0.5237 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.4666, allocations: 95.98 kB / 0.5238 GB, free: 13.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005272/0.4671, allocations: 379.7 kB / 0.5242 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/0.4674, allocations: 122.4 kB / 0.5243 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003985/0.4714, allocations: 1.531 MB / 0.5258 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.4714, allocations: 15.97 kB / 0.5258 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.4714, allocations: 4 kB / 0.5258 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4714, allocations: 3.984 kB / 0.5258 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005571/0.477, allocations: 3.018 MB / 0.5287 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.477, allocations: 8.875 kB / 0.5287 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007216/0.4777, allocations: 219.7 kB / 0.529 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/0.48, allocations: 408.5 kB / 0.5293 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.548e-05/0.48, allocations: 47.92 kB / 0.5294 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006277/0.4863, allocations: 7.715 MB / 0.5369 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.4863, allocations: 15.92 kB / 0.5369 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003957/0.4903, allocations: 2.152 MB / 0.539 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.4906, allocations: 195.6 kB / 0.5392 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.4907, allocations: 28 kB / 0.5393 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/0.4913, allocations: 28 kB / 0.5393 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4915, allocations: 112.3 kB / 0.5394 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.068e-05/0.4915, allocations: 51.98 kB / 0.5394 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009279/0.4925, allocations: 1.017 MB / 0.5404 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4925, allocations: 0 / 0.5404 GB, free: 11.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002217/0.4947, allocations: 0.8158 MB / 0.5412 GB, free: 10.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 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): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00529/0.5, allocations: 3.477 MB / 0.5446 GB, free: 6.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.5029, allocations: 1.816 MB / 0.5464 GB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.503, allocations: 0 / 0.5464 GB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.504, allocations: 1.004 MB / 0.5474 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5052, allocations: 229.9 kB / 0.5476 GB, free: 3.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/0.5221, allocations: 14.04 MB / 0.5613 GB, free: 4.258 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006451/0.5227, allocations: 1.227 MB / 0.5625 GB, free: 3.004 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001031/0.5238, allocations: 322.4 kB / 0.5628 GB, free: 2.684 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006929/0.5245, allocations: 0.6671 MB / 0.5635 GB, free: 2.016 MB / 430.1 MB Notification: Performance of SimCode: time 1.512e-06/0.5245, allocations: 0 / 0.5635 GB, free: 2.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9107/1.435, allocations: 39.7 MB / 0.6022 GB, free: 136.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.51, allocations: 17.19 kB / 0.6023 GB, free: 136.2 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)