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.007494/0.007495, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001831/0.001831, allocations: 190 kB / 16.67 MB, free: 5.977 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2052/0.2052, allocations: 15.32 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 60.05 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2677, allocations: 53.61 MB / 478.3 MB, free: 25.66 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.04961/0.3173, allocations: 27.83 MB / 0.4943 GB, free: 6.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02399/0.3413, allocations: 19.4 MB / 0.5132 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.3431, allocations: 15.94 kB / 0.5132 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.3449, allocations: 0.4924 MB / 0.5137 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004215/0.3491, allocations: 1.249 MB / 0.5149 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007359/0.3565, allocations: 2.85 MB / 0.5177 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003085/0.3596, allocations: 2.098 MB / 0.5198 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.3614, allocations: 1.342 MB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.3628, allocations: 0.9114 MB / 0.522 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.3645, allocations: 1.055 MB / 0.523 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005262/0.3651, allocations: 200 kB / 0.5232 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007417/0.3725, allocations: 2.056 MB / 0.5252 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008308/0.3734, allocations: 470.5 kB / 0.5256 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.3753, allocations: 0.98 MB / 0.5266 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.3873, allocations: 4.196 MB / 0.5307 GB, free: 1.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3874, allocations: 4 kB / 0.5307 GB, free: 1.398 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3874, allocations: 0 / 0.5307 GB, free: 1.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001119/0.3875, allocations: 0 / 0.5307 GB, free: 1.398 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004795/0.3923, allocations: 2.349 MB / 0.533 GB, free: 14.99 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3924, allocations: 12.03 kB / 0.533 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.3926, allocations: 232.8 kB / 0.5332 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.3942, allocations: 447.3 kB / 0.5336 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.3959, allocations: 1.076 MB / 0.5347 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.3961, allocations: 186.8 kB / 0.5349 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.3963, allocations: 167.9 kB / 0.535 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003111/0.3994, allocations: 2.218 MB / 0.5372 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.3995, allocations: 3.938 kB / 0.5372 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.3996, allocations: 71.98 kB / 0.5373 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-05/0.3997, allocations: 40 kB / 0.5373 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00384/0.4035, allocations: 2.672 MB / 0.5399 GB, free: 7.746 MB / 414.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.01033/0.4139, allocations: 7.208 MB / 0.547 GB, free: 264 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.4156, allocations: 1.177 MB / 0.5481 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008303/0.4165, allocations: 0.5603 MB / 0.5487 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007311/0.4238, allocations: 5.115 MB / 0.5537 GB, free: 8.816 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.4239, allocations: 43.06 kB / 0.5537 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004977/0.4244, allocations: 114.6 kB / 0.5538 GB, free: 8.652 MB / 430.1 MB Notification: Performance of pre-optimization done (n=71): time 3.256e-06/0.4244, allocations: 7.938 kB / 0.5538 GB, free: 8.645 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.01848/0.4429, allocations: 4.807 MB / 0.5585 GB, free: 3.711 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.443, allocations: 111.8 kB / 0.5586 GB, free: 3.578 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.4448, allocations: 1.474 MB / 0.5601 GB, free: 2.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.4449, allocations: 45.77 kB / 0.5601 GB, free: 2.039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006116/0.4455, allocations: 0.8932 MB / 0.561 GB, free: 1.129 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003181/0.4458, allocations: 347.3 kB / 0.5613 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005098/0.4464, allocations: 359.1 kB / 0.5616 GB, free: 436 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4465, allocations: 301.1 kB / 0.5619 GB, free: 132 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.4475, allocations: 0.6169 MB / 0.5625 GB, free: 15.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.449, allocations: 1.337 MB / 0.5638 GB, free: 13.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002465/0.4515, allocations: 1.913 MB / 0.5657 GB, free: 11.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.4515, allocations: 8 kB / 0.5657 GB, free: 11.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005447/0.457, allocations: 2.366 MB / 0.568 GB, free: 9.203 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.457, allocations: 15.94 kB / 0.568 GB, free: 9.188 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-05/0.4571, allocations: 24 kB / 0.5681 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.4596, allocations: 382.8 kB / 0.5684 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002742/0.4624, allocations: 0.5578 MB / 0.569 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008969/0.4714, allocations: 7.905 MB / 0.5767 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001717/0.4732, allocations: 83.78 kB / 0.5768 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/0.4735, allocations: 108 kB / 0.5769 GB, free: 15.51 MB / 462.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.0008476/0.4744, allocations: 376.9 kB / 0.5772 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.4748, allocations: 126.4 kB / 0.5774 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005008/0.4798, allocations: 1.527 MB / 0.5788 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.4799, allocations: 12 kB / 0.5789 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4799, allocations: 0 / 0.5789 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.4799, allocations: 3.984 kB / 0.5789 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007488/0.4874, allocations: 3.01 MB / 0.5818 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/0.4875, allocations: 8.875 kB / 0.5818 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008952/0.4884, allocations: 219.7 kB / 0.582 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00279/0.4912, allocations: 412.6 kB / 0.5824 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.4913, allocations: 39.98 kB / 0.5824 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008427/0.4998, allocations: 7.711 MB / 0.59 GB, free: 1.238 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/0.4998, allocations: 11.94 kB / 0.59 GB, free: 1.227 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005148/0.505, allocations: 2.16 MB / 0.5921 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004771/0.5055, allocations: 199.5 kB / 0.5923 GB, free: 14.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/0.5058, allocations: 31.98 kB / 0.5923 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008157/0.5066, allocations: 32 kB / 0.5924 GB, free: 14.67 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.5068, allocations: 108.3 kB / 0.5925 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.634e-05/0.5069, allocations: 51.98 kB / 0.5925 GB, free: 14.51 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00131/0.5082, allocations: 1.021 MB / 0.5935 GB, free: 13.48 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.5082, allocations: 0 / 0.5935 GB, free: 13.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002983/0.5112, allocations: 0.8119 MB / 0.5943 GB, free: 12.67 MB / 478.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.00761/0.5189, allocations: 3.483 MB / 0.5977 GB, free: 9.059 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.5228, allocations: 1.769 MB / 0.5994 GB, free: 7.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.5228, allocations: 0 / 0.5994 GB, free: 7.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.5243, allocations: 1 MB / 0.6004 GB, free: 6.215 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.5262, allocations: 235.6 kB / 0.6006 GB, free: 5.988 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2565/0.7827, allocations: 13.31 MB / 0.6136 GB, free: 112.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.7839, allocations: 1.225 MB / 0.6148 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001182/0.7851, allocations: 323.3 kB / 0.6151 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009242/0.7861, allocations: 0.6573 MB / 0.6158 GB, free: 111 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7861, allocations: 0.5 kB / 0.6158 GB, free: 111 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1109/0.897, allocations: 40.24 MB / 0.6551 GB, free: 88.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.06/26.96, allocations: 3.984 kB / 0.6551 GB, free: 88.03 MB / 478.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)