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.001152/0.001152, allocations: 108 kB / 15.6 MB, free: 132 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.001114/0.001114, allocations: 195.5 kB / 16.54 MB, free: 6.672 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.144/1.144, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1593/0.1593, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 71.88 kB / 370.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0756/0.07669, allocations: 53.6 MB / 424 MB, free: 14.2 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.2653/0.342, allocations: 29.79 MB / 453.8 MB, free: 38.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.3625, allocations: 28.69 MB / 482.5 MB, free: 23.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.3637, allocations: 27.94 kB / 482.5 MB, free: 23.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.365, allocations: 0.6579 MB / 483.2 MB, free: 23.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004453/0.3695, allocations: 2.177 MB / 485.4 MB, free: 21.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007668/0.3772, allocations: 3.855 MB / 489.2 MB, free: 19.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002379/0.3796, allocations: 2.832 MB / 492.1 MB, free: 18.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.3809, allocations: 1.678 MB / 493.7 MB, free: 17.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.3819, allocations: 1.312 MB / 495.1 MB, free: 16.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00127/0.3832, allocations: 1.49 MB / 496.5 MB, free: 16.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002903/0.3835, allocations: 261.7 kB / 496.8 MB, free: 16.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007533/0.391, allocations: 3.103 MB / 499.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.3914, allocations: 0.6151 MB / 0.4888 GB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008711/0.3923, allocations: 1.297 MB / 0.4901 GB, free: 14.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00853/0.4009, allocations: 5.967 MB / 0.4959 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4009, allocations: 0 / 0.4959 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4009, allocations: 0 / 0.4959 GB, free: 10.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.939e-05/0.4009, allocations: 0 / 0.4959 GB, free: 10.22 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.004173/0.4051, allocations: 3.081 MB / 0.4989 GB, free: 7.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.4051, allocations: 12.03 kB / 0.4989 GB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002717/0.4054, allocations: 301.2 kB / 0.4992 GB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/0.4073, allocations: 0.5409 MB / 0.4997 GB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.4088, allocations: 1.264 MB / 0.501 GB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.4089, allocations: 225.3 kB / 0.5012 GB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.4092, allocations: 224.7 kB / 0.5014 GB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003079/0.4122, allocations: 2.669 MB / 0.504 GB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.4123, allocations: 3.938 kB / 0.504 GB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/0.4125, allocations: 92 kB / 0.5041 GB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.4125, allocations: 59.94 kB / 0.5041 GB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003666/0.4162, allocations: 3.305 MB / 0.5074 GB, free: 15.89 MB / 382.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.01081/0.427, allocations: 8.703 MB / 0.5159 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.4293, allocations: 2.002 MB / 0.5178 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4305, allocations: 0.9212 MB / 0.5187 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009216/0.4397, allocations: 7.893 MB / 0.5264 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.4397, allocations: 43.88 kB / 0.5265 GB, free: 11.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 2.244e-06/0.4397, allocations: 0 / 0.5265 GB, free: 11.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.02575/0.4655, allocations: 8.213 MB / 0.5345 GB, free: 2.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.4656, allocations: 103.1 kB / 0.5346 GB, free: 2.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.4669, allocations: 1.358 MB / 0.5359 GB, free: 1.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.816e-05/0.467, allocations: 57.7 kB / 0.536 GB, free: 1.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005455/0.4676, allocations: 1.035 MB / 0.537 GB, free: 336 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004146/0.468, allocations: 0.6317 MB / 0.5376 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005641/0.4686, allocations: 484.8 kB / 0.5381 GB, free: 15.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.64e-05/0.4686, allocations: 305.1 kB / 0.5383 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.4698, allocations: 0.8093 MB / 0.5391 GB, free: 14.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.4715, allocations: 1.658 MB / 0.5408 GB, free: 12.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.4745, allocations: 2.602 MB / 0.5433 GB, free: 9.066 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.4746, allocations: 8 kB / 0.5433 GB, free: 9.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.005687/0.4802, allocations: 3.053 MB / 0.5463 GB, free: 5.984 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.4803, allocations: 16 kB / 0.5463 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.4803, allocations: 28 kB / 0.5463 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/0.4831, allocations: 0.5145 MB / 0.5468 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003169/0.4862, allocations: 0.7958 MB / 0.5476 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007458/0.4937, allocations: 8.049 MB / 0.5555 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.495, allocations: 91.81 kB / 0.5556 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.4952, allocations: 152 kB / 0.5557 GB, free: 11.72 MB / 430.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.0006635/0.4959, allocations: 454.4 kB / 0.5561 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.4962, allocations: 161.9 kB / 0.5563 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00584/0.502, allocations: 2.578 MB / 0.5588 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.502, allocations: 23.98 kB / 0.5588 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5021, allocations: 0 / 0.5588 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.5021, allocations: 7.969 kB / 0.5588 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.51, allocations: 4.758 MB / 0.5635 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.51, allocations: 12.97 kB / 0.5635 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.5114, allocations: 419.4 kB / 0.5639 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002849/0.5143, allocations: 0.5587 MB / 0.5644 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.5144, allocations: 83.95 kB / 0.5645 GB, free: 2.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/0.5213, allocations: 7.836 MB / 0.5722 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/0.5213, allocations: 24 kB / 0.5722 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005767/0.5271, allocations: 3.461 MB / 0.5756 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.5273, allocations: 238.9 kB / 0.5758 GB, free: 6.004 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.5276, allocations: 55.98 kB / 0.5759 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008426/0.5284, allocations: 55.94 kB / 0.5759 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.5287, allocations: 196.7 kB / 0.5761 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.5288, allocations: 87.97 kB / 0.5762 GB, free: 5.617 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009258/0.5297, allocations: 0.8928 MB / 0.5771 GB, free: 4.723 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5297, allocations: 0 / 0.5771 GB, free: 4.723 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003128/0.5329, allocations: 1.198 MB / 0.5782 GB, free: 3.523 MB / 446.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.008179/0.541, allocations: 5.202 MB / 0.5833 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005463/0.5465, allocations: 2.654 MB / 0.5859 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5465, allocations: 0 / 0.5859 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001723/0.5483, allocations: 1.435 MB / 0.5873 GB, free: 9.965 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/0.5499, allocations: 344.5 kB / 0.5876 GB, free: 9.629 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1503/0.7002, allocations: 18.09 MB / 0.6053 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006162/0.7009, allocations: 1.432 MB / 0.6067 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001569/0.7025, allocations: 457.4 kB / 0.6071 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008906/0.7034, allocations: 0.9656 MB / 0.6081 GB, free: 125.2 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.7034, allocations: 0 / 0.6081 GB, free: 125.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07386/0.7772, allocations: 57.01 MB / 0.6637 GB, free: 97.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.99, allocations: 13.53 kB / 0.6638 GB, free: 97.92 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/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)