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: "" <> buildModelFMU(Chemical.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_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.005514/0.005514, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001457/0.001457, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1973/0.1973, allocations: 15.33 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001839, allocations: 63.91 kB / 424.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2414, allocations: 53.6 MB / 478.3 MB, free: 25.73 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.ElectrochemicalCell): time 0.035/0.2764, allocations: 30.36 MB / 0.4968 GB, free: 4.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03212/0.3086, allocations: 28.69 MB / 0.5248 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002219/0.3108, allocations: 23.88 kB / 0.5248 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.3131, allocations: 0.6475 MB / 0.5254 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007102/0.3202, allocations: 2.188 MB / 0.5276 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.3308, allocations: 3.844 MB / 0.5313 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004465/0.3353, allocations: 2.852 MB / 0.5341 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002126/0.3375, allocations: 1.688 MB / 0.5358 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.3393, allocations: 1.321 MB / 0.5371 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.3416, allocations: 1.483 MB / 0.5385 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005367/0.3421, allocations: 260 kB / 0.5387 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009493/0.3516, allocations: 3.109 MB / 0.5418 GB, free: 6.016 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009705/0.3526, allocations: 0.6075 MB / 0.5424 GB, free: 5.406 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001785/0.3544, allocations: 1.299 MB / 0.5436 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01499/0.3694, allocations: 6.019 MB / 0.5495 GB, free: 14.05 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3695, allocations: 0 / 0.5495 GB, free: 14.05 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3695, allocations: 0 / 0.5495 GB, free: 14.05 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.148e-05/0.3695, allocations: 0 / 0.5495 GB, free: 14.05 MB / 430.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.00612/0.3757, allocations: 3.175 MB / 0.5526 GB, free: 10.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3757, allocations: 8.031 kB / 0.5526 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003536/0.3761, allocations: 304.3 kB / 0.5529 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002266/0.3784, allocations: 0.5531 MB / 0.5535 GB, free: 9.938 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.3806, allocations: 1.303 MB / 0.5547 GB, free: 8.586 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/0.3809, allocations: 231.9 kB / 0.555 GB, free: 8.344 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003703/0.3812, allocations: 227.9 kB / 0.5552 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004611/0.3859, allocations: 2.663 MB / 0.5578 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.292e-05/0.3859, allocations: 0 / 0.5578 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.3862, allocations: 88 kB / 0.5579 GB, free: 5.281 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.816e-05/0.3862, allocations: 52 kB / 0.5579 GB, free: 5.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005459/0.3917, allocations: 3.318 MB / 0.5611 GB, free: 1.91 MB / 430.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.01405/0.4057, allocations: 8.655 MB / 0.5696 GB, free: 8.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/0.4086, allocations: 1.997 MB / 0.5716 GB, free: 6.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.4101, allocations: 0.9251 MB / 0.5725 GB, free: 5.875 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.4218, allocations: 7.911 MB / 0.5802 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.4219, allocations: 43.88 kB / 0.5802 GB, free: 13.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 3.737e-06/0.4219, allocations: 0 / 0.5802 GB, free: 13.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03071/0.4527, allocations: 8.262 MB / 0.5883 GB, free: 4.711 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.4528, allocations: 99.11 kB / 0.5884 GB, free: 4.594 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.4546, allocations: 1.351 MB / 0.5897 GB, free: 3.227 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.4547, allocations: 61.69 kB / 0.5898 GB, free: 3.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008052/0.4555, allocations: 1.081 MB / 0.5908 GB, free: 2.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000633/0.4562, allocations: 0.6625 MB / 0.5915 GB, free: 1.398 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007212/0.4569, allocations: 481 kB / 0.5919 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.457, allocations: 305.1 kB / 0.5922 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.4585, allocations: 0.8093 MB / 0.593 GB, free: 15.81 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002302/0.4608, allocations: 1.658 MB / 0.5946 GB, free: 13.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003867/0.4647, allocations: 2.602 MB / 0.5972 GB, free: 10.79 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/0.4648, allocations: 8 kB / 0.5972 GB, free: 10.78 MB / 478.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007028/0.4718, allocations: 3.05 MB / 0.6002 GB, free: 7.711 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.4719, allocations: 17.56 kB / 0.6002 GB, free: 7.695 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-05/0.4719, allocations: 31.98 kB / 0.6002 GB, free: 7.664 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003087/0.475, allocations: 0.5225 MB / 0.6007 GB, free: 7.129 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003851/0.4789, allocations: 0.7958 MB / 0.6015 GB, free: 6.332 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2323/0.7112, allocations: 8.035 MB / 0.6093 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.7132, allocations: 93.36 kB / 0.6094 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004042/0.7136, allocations: 145 kB / 0.6096 GB, free: 112 MB / 478.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.0008831/0.7145, allocations: 449.3 kB / 0.61 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003868/0.7149, allocations: 178.8 kB / 0.6102 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006357/0.7212, allocations: 2.579 MB / 0.6127 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/0.7213, allocations: 18.56 kB / 0.6127 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.7213, allocations: 1.547 kB / 0.6127 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.26e-05/0.7214, allocations: 12.48 kB / 0.6127 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009989/0.7314, allocations: 4.77 MB / 0.6174 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/0.7314, allocations: 10.91 kB / 0.6174 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.7332, allocations: 422.4 kB / 0.6178 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003022/0.7362, allocations: 0.5485 MB / 0.6183 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.7364, allocations: 76.75 kB / 0.6184 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006098/0.7425, allocations: 7.836 MB / 0.626 GB, free: 101.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.7425, allocations: 20.34 kB / 0.6261 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006356/0.7489, allocations: 3.481 MB / 0.6295 GB, free: 99.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004698/0.7494, allocations: 249.7 kB / 0.6297 GB, free: 99.72 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.7496, allocations: 58.11 kB / 0.6298 GB, free: 99.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009188/0.7506, allocations: 50.56 kB / 0.6298 GB, free: 99.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.7509, allocations: 192.6 kB / 0.63 GB, free: 99.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.751, allocations: 96.41 kB / 0.6301 GB, free: 99.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.7521, allocations: 0.8881 MB / 0.6309 GB, free: 99.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7521, allocations: 0 / 0.6309 GB, free: 99.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003472/0.7556, allocations: 1.212 MB / 0.6321 GB, free: 99.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008586/0.7642, allocations: 5.231 MB / 0.6372 GB, free: 96.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00483/0.769, allocations: 2.488 MB / 0.6397 GB, free: 95.62 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/0.7691, allocations: 1.469 kB / 0.6397 GB, free: 95.62 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.771, allocations: 1.431 MB / 0.6411 GB, free: 94.83 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.773, allocations: 349.7 kB / 0.6414 GB, free: 94.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/0.7959, allocations: 16.97 MB / 0.658 GB, free: 83.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006847/0.7966, allocations: 1.431 MB / 0.6594 GB, free: 82.17 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001406/0.798, allocations: 457.5 kB / 0.6598 GB, free: 81.85 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009988/0.799, allocations: 0.9722 MB / 0.6608 GB, free: 80.89 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/0.799, allocations: 0 / 0.6608 GB, free: 80.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09195/0.891, allocations: 57.69 MB / 0.7171 GB, free: 24.04 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/18.7, allocations: 15.72 kB / 0.7171 GB, free: 24.03 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)