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.00556/0.00556, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001493/0.001493, allocations: 188.2 kB / 16.67 MB, free: 5.973 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1903/0.1903, allocations: 15.34 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 63.91 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2563, allocations: 53.61 MB / 478.3 MB, free: 25.65 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.03208/0.2884, allocations: 28.38 MB / 0.4948 GB, free: 6.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02084/0.3092, allocations: 19.39 MB / 0.5138 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.311, allocations: 19.88 kB / 0.5138 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.3124, allocations: 0.5002 MB / 0.5143 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.3161, allocations: 1.226 MB / 0.5155 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006974/0.3231, allocations: 2.831 MB / 0.5182 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003247/0.3263, allocations: 2.094 MB / 0.5203 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.328, allocations: 1.349 MB / 0.5216 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.3291, allocations: 0.9076 MB / 0.5225 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.3304, allocations: 1.047 MB / 0.5235 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002853/0.3307, allocations: 200 kB / 0.5237 GB, free: 8.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00552/0.3362, allocations: 2.067 MB / 0.5257 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005203/0.3368, allocations: 470.5 kB / 0.5262 GB, free: 6.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00142/0.3382, allocations: 0.98 MB / 0.5271 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.3497, allocations: 4.21 MB / 0.5312 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3497, allocations: 0 / 0.5312 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3497, allocations: 4 kB / 0.5312 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.35e-05/0.3498, allocations: 4 kB / 0.5312 GB, free: 0.8398 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.006193/0.356, allocations: 2.413 MB / 0.5336 GB, free: 14.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.356, allocations: 8.031 kB / 0.5336 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003947/0.3565, allocations: 236.8 kB / 0.5338 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002739/0.3592, allocations: 452.2 kB / 0.5343 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.3618, allocations: 1.08 MB / 0.5353 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.3621, allocations: 178.8 kB / 0.5355 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003805/0.3625, allocations: 172 kB / 0.5356 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004972/0.3675, allocations: 2.214 MB / 0.5378 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.3675, allocations: 7.938 kB / 0.5378 GB, free: 9.902 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.3677, allocations: 64 kB / 0.5379 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/0.3677, allocations: 44 kB / 0.5379 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004031/0.3718, allocations: 2.668 MB / 0.5405 GB, free: 7.121 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.01064/0.3824, allocations: 7.23 MB / 0.5476 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.3843, allocations: 1.188 MB / 0.5487 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008835/0.3852, allocations: 0.5565 MB / 0.5493 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007941/0.3932, allocations: 5.127 MB / 0.5543 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.3932, allocations: 39.12 kB / 0.5543 GB, free: 8.109 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004608/0.3937, allocations: 115 kB / 0.5544 GB, free: 7.996 MB / 430.1 MB Notification: Performance of pre-optimization done (n=71): time 3.587e-06/0.3937, allocations: 4 kB / 0.5544 GB, free: 7.992 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.01812/0.4118, allocations: 4.861 MB / 0.5592 GB, free: 3.012 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.412, allocations: 115.8 kB / 0.5593 GB, free: 2.875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.414, allocations: 1.486 MB / 0.5608 GB, free: 1.375 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4142, allocations: 41.7 kB / 0.5608 GB, free: 1.328 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007787/0.415, allocations: 0.9123 MB / 0.5617 GB, free: 412 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004165/0.4154, allocations: 368.9 kB / 0.562 GB, free: 40 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005889/0.416, allocations: 359.4 kB / 0.5624 GB, free: 15.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4161, allocations: 301.1 kB / 0.5627 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.4172, allocations: 0.6208 MB / 0.5633 GB, free: 14.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.4189, allocations: 1.329 MB / 0.5646 GB, free: 13.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002691/0.4216, allocations: 1.921 MB / 0.5664 GB, free: 10.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.709e-05/0.4216, allocations: 12 kB / 0.5665 GB, free: 10.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005665/0.4273, allocations: 2.367 MB / 0.5688 GB, free: 8.445 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.4274, allocations: 23.88 kB / 0.5688 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.4274, allocations: 24 kB / 0.5688 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00241/0.4298, allocations: 379 kB / 0.5692 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.4324, allocations: 0.5694 MB / 0.5697 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008988/0.4414, allocations: 7.912 MB / 0.5775 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.4427, allocations: 79.86 kB / 0.5775 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002378/0.4429, allocations: 104 kB / 0.5776 GB, free: 14.75 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.000703/0.4437, allocations: 379.7 kB / 0.578 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.444, allocations: 127.2 kB / 0.5781 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004583/0.4486, allocations: 1.538 MB / 0.5796 GB, free: 12.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4486, allocations: 8 kB / 0.5796 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4486, allocations: 4 kB / 0.5796 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.4486, allocations: 3.984 kB / 0.5796 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006851/0.4555, allocations: 3.008 MB / 0.5826 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.4555, allocations: 11.94 kB / 0.5826 GB, free: 9.469 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008291/0.4564, allocations: 219.7 kB / 0.5828 GB, free: 9.254 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/0.4589, allocations: 408.4 kB / 0.5832 GB, free: 8.836 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-05/0.4591, allocations: 43.98 kB / 0.5832 GB, free: 8.793 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008354/0.4674, allocations: 7.711 MB / 0.5908 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/0.4675, allocations: 11.94 kB / 0.5908 GB, free: 460 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005094/0.4726, allocations: 2.168 MB / 0.5929 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.473, allocations: 212.2 kB / 0.5931 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.4733, allocations: 27.98 kB / 0.5931 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/0.474, allocations: 32 kB / 0.5931 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.4743, allocations: 108.3 kB / 0.5932 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.234e-05/0.4744, allocations: 51.98 kB / 0.5933 GB, free: 13.72 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001379/0.4757, allocations: 1.013 MB / 0.5943 GB, free: 12.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4758, allocations: 0 / 0.5943 GB, free: 12.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002697/0.4785, allocations: 0.8221 MB / 0.5951 GB, free: 11.88 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.006927/0.4854, allocations: 3.496 MB / 0.5985 GB, free: 8.25 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003429/0.4888, allocations: 1.769 MB / 0.6002 GB, free: 6.461 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.4889, allocations: 4.188 kB / 0.6002 GB, free: 6.457 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.4903, allocations: 0.9996 MB / 0.6012 GB, free: 5.402 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.4918, allocations: 232.2 kB / 0.6014 GB, free: 5.176 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2071/0.6989, allocations: 13.39 MB / 0.6145 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008239/0.6998, allocations: 1.223 MB / 0.6157 GB, free: 111.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001063/0.7009, allocations: 312.4 kB / 0.616 GB, free: 111.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/0.7016, allocations: 0.663 MB / 0.6167 GB, free: 110.6 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7016, allocations: 0 / 0.6167 GB, free: 110.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07409/0.7757, allocations: 40.25 MB / 0.656 GB, free: 87.13 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.95/29.72, allocations: 3.516 kB / 0.656 GB, free: 87.13 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)