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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0007513/0.0007512, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0007804/0.0007804, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1837/0.1837, allocations: 15.27 MB / 306.3 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002983, allocations: 8 kB / 371.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2398, allocations: 54.61 MB / 426.2 MB, free: 40.14 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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.0/package.mo:3011:6-3011:65: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.007591/0.2475, allocations: 10.55 MB / 436.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02268/0.2701, allocations: 26.26 MB / 463 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002373/0.2726, allocations: 44.56 kB / 463 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.2745, allocations: 0.5956 MB / 463.6 MB, free: 16.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006185/0.2807, allocations: 1.985 MB / 465.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00872/0.2894, allocations: 3.124 MB / 468.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003566/0.293, allocations: 2.611 MB / 471.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002105/0.2952, allocations: 1.302 MB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002227/0.2974, allocations: 1.059 MB / 473.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003032/0.3005, allocations: 1.321 MB / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008178/0.3013, allocations: 134.1 kB / 475.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008932/0.3103, allocations: 2.84 MB / 478 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.3113, allocations: 470.2 kB / 478.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.3126, allocations: 449.4 kB / 478.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008096/0.3207, allocations: 4.47 MB / 483.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3208, allocations: 4 kB / 483.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3208, allocations: 0 / 483.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001708/0.321, allocations: 0 / 483.4 MB, free: 7.719 MB / 350.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.007176/0.3281, allocations: 2.587 MB / 486 MB, free: 6.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3282, allocations: 9.094 kB / 486 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008523/0.3291, allocations: 308.4 kB / 486.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002776/0.3318, allocations: 0.5337 MB / 486.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002839/0.3347, allocations: 1.22 MB / 488 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/0.3349, allocations: 221.5 kB / 488.2 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006204/0.3356, allocations: 224.6 kB / 488.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005491/0.3411, allocations: 2.651 MB / 491.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.114e-05/0.3411, allocations: 1.375 kB / 491.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000281/0.3414, allocations: 91.25 kB / 491.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.302e-05/0.3415, allocations: 53.62 kB / 491.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004974/0.3464, allocations: 3.295 MB / 494.5 MB, free: 1.418 MB / 350.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.01334/0.3598, allocations: 8.615 MB / 0.4914 GB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002625/0.3624, allocations: 1.994 MB / 0.4933 GB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.3638, allocations: 0.9134 MB / 0.4942 GB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.3753, allocations: 7.75 MB / 0.5018 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.3754, allocations: 51.77 kB / 0.5018 GB, free: 12.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.606e-06/0.3754, allocations: 0 / 0.5018 GB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03028/0.4057, allocations: 8.272 MB / 0.5099 GB, free: 4.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.4058, allocations: 99.05 kB / 0.51 GB, free: 4.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.4076, allocations: 1.346 MB / 0.5113 GB, free: 2.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.4078, allocations: 53.73 kB / 0.5114 GB, free: 2.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007133/0.4085, allocations: 1.05 MB / 0.5124 GB, free: 1.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005762/0.4091, allocations: 0.6316 MB / 0.513 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.4093, allocations: 48 kB / 0.513 GB, free: 1.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4095, allocations: 399.1 kB / 0.5134 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.4109, allocations: 0.8054 MB / 0.5142 GB, free: 15.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/0.4129, allocations: 1.642 MB / 0.5158 GB, free: 13.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.4146, allocations: 1.044 MB / 0.5168 GB, free: 12.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.4146, allocations: 8 kB / 0.5168 GB, free: 12.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006589/0.4212, allocations: 3.03 MB / 0.5198 GB, free: 9.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.395e-05/0.4213, allocations: 16 kB / 0.5198 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.702e-05/0.4213, allocations: 28.34 kB / 0.5198 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0031/0.4244, allocations: 0.5376 MB / 0.5204 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/0.4278, allocations: 0.7958 MB / 0.5211 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/0.4359, allocations: 7.488 MB / 0.5285 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/0.4378, allocations: 143.8 kB / 0.5286 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003189/0.4381, allocations: 140 kB / 0.5287 GB, free: 56 kB / 398.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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 3 {1 6,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001011/0.4392, allocations: 452.9 kB / 0.5292 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/0.4395, allocations: 165.9 kB / 0.5293 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006743/0.4463, allocations: 2.598 MB / 0.5319 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.4463, allocations: 20 kB / 0.5319 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.4463, allocations: 0 / 0.5319 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.4464, allocations: 7.969 kB / 0.5319 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009678/0.456, allocations: 4.763 MB / 0.5365 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.4561, allocations: 12.19 kB / 0.5365 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.4577, allocations: 427.3 kB / 0.537 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003239/0.4609, allocations: 0.5665 MB / 0.5375 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001768/0.4611, allocations: 79.97 kB / 0.5376 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007721/0.4688, allocations: 7.277 MB / 0.5447 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/0.4689, allocations: 19.89 kB / 0.5447 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006712/0.4756, allocations: 3.446 MB / 0.5481 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005586/0.4762, allocations: 262.8 kB / 0.5483 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/0.4765, allocations: 55.98 kB / 0.5484 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.4777, allocations: 79.81 kB / 0.5485 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.478, allocations: 188.8 kB / 0.5486 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.4781, allocations: 91.97 kB / 0.5487 GB, free: 10.49 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001181/0.4793, allocations: 0.8811 MB / 0.5496 GB, free: 9.605 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4793, allocations: 0 / 0.5496 GB, free: 9.605 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003977/0.4833, allocations: 1.171 MB / 0.5507 GB, free: 8.434 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 6,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009711/0.493, allocations: 5.164 MB / 0.5558 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00453/0.4976, allocations: 2.448 MB / 0.5582 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.4976, allocations: 0 / 0.5582 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001992/0.4996, allocations: 1.414 MB / 0.5595 GB, free: 15.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.5018, allocations: 336.2 kB / 0.5599 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/0.5235, allocations: 12.82 MB / 0.5724 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.5249, allocations: 1.437 MB / 0.5738 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002069/0.527, allocations: 466.9 kB / 0.5742 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/0.5284, allocations: 0.9713 MB / 0.5752 GB, free: 14.05 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5284, allocations: 4 kB / 0.5752 GB, free: 14.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2639/0.7923, allocations: 54.52 MB / 0.6284 GB, free: 121.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001349/0.7925, allocations: 204.8 kB / 0.6286 GB, free: 120.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.404/4.197, allocations: 4 kB / 0.6286 GB, free: 120.9 MB / 462.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/linux/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) Environment - environmentSimulation: