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.006764/0.006764, allocations: 106.5 kB / 15.74 MB, free: 6.449 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.001492/0.001492, allocations: 197 kB / 16.67 MB, free: 6.355 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2027/0.2027, allocations: 15.32 MB / 305.9 MB, free: 15.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 67.89 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2833, allocations: 53.6 MB / 478.3 MB, free: 25.61 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.0362/0.3195, allocations: 29.76 MB / 0.4962 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03243/0.352, allocations: 28.7 MB / 0.5242 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002048/0.3541, allocations: 23.88 kB / 0.5242 GB, free: 8.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.3563, allocations: 0.6553 MB / 0.5248 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006933/0.3633, allocations: 2.18 MB / 0.527 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01066/0.374, allocations: 3.86 MB / 0.5307 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004319/0.3783, allocations: 2.852 MB / 0.5335 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002371/0.3807, allocations: 1.677 MB / 0.5352 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001887/0.3826, allocations: 1.325 MB / 0.5365 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002441/0.3851, allocations: 1.483 MB / 0.5379 GB, free: 9.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007115/0.3858, allocations: 260 kB / 0.5382 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009184/0.395, allocations: 3.105 MB / 0.5412 GB, free: 6.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009391/0.396, allocations: 0.6037 MB / 0.5418 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.398, allocations: 1.307 MB / 0.5431 GB, free: 4.699 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.411, allocations: 6.003 MB / 0.5489 GB, free: 14.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.411, allocations: 0 / 0.5489 GB, free: 14.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.411, allocations: 0 / 0.5489 GB, free: 14.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001142/0.4111, allocations: 0 / 0.5489 GB, free: 14.68 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.006429/0.4176, allocations: 3.08 MB / 0.5519 GB, free: 11.53 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4176, allocations: 12.03 kB / 0.5519 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004828/0.4181, allocations: 304.2 kB / 0.5522 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002425/0.4205, allocations: 0.5518 MB / 0.5528 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002473/0.423, allocations: 1.287 MB / 0.554 GB, free: 9.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.4233, allocations: 227.9 kB / 0.5542 GB, free: 9.082 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005033/0.4238, allocations: 235.8 kB / 0.5545 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004796/0.4286, allocations: 2.671 MB / 0.5571 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/0.4287, allocations: 0 / 0.5571 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/0.4289, allocations: 92 kB / 0.5572 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.77e-05/0.429, allocations: 52 kB / 0.5572 GB, free: 5.949 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005185/0.4342, allocations: 3.306 MB / 0.5604 GB, free: 2.641 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.01451/0.4487, allocations: 8.645 MB / 0.5689 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002904/0.4516, allocations: 1.993 MB / 0.5708 GB, free: 7.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.4531, allocations: 0.9251 MB / 0.5717 GB, free: 6.613 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.4663, allocations: 7.879 MB / 0.5794 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.4664, allocations: 55.81 kB / 0.5795 GB, free: 13.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 3.436e-06/0.4664, allocations: 0 / 0.5795 GB, free: 13.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03277/0.4992, allocations: 8.202 MB / 0.5875 GB, free: 5.523 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.4993, allocations: 103.1 kB / 0.5876 GB, free: 5.402 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.5013, allocations: 1.354 MB / 0.5889 GB, free: 4.031 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002258/0.5015, allocations: 61.64 kB / 0.589 GB, free: 3.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007606/0.5023, allocations: 1.05 MB / 0.59 GB, free: 2.898 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006824/0.503, allocations: 0.6239 MB / 0.5906 GB, free: 2.266 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000666/0.5037, allocations: 488.7 kB / 0.5911 GB, free: 1.781 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.5038, allocations: 301.1 kB / 0.5914 GB, free: 1.484 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.5051, allocations: 0.8132 MB / 0.5921 GB, free: 0.668 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001982/0.5071, allocations: 1.654 MB / 0.5938 GB, free: 14.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003511/0.5106, allocations: 2.606 MB / 0.5963 GB, free: 11.65 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/0.5107, allocations: 8 kB / 0.5963 GB, free: 11.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007314/0.518, allocations: 3.038 MB / 0.5993 GB, free: 8.582 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.518, allocations: 16 kB / 0.5993 GB, free: 8.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.964e-05/0.5181, allocations: 28.34 kB / 0.5993 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00332/0.5214, allocations: 0.5182 MB / 0.5998 GB, free: 8.008 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003733/0.5252, allocations: 0.7997 MB / 0.6006 GB, free: 7.207 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2497/0.7749, allocations: 8.032 MB / 0.6085 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/0.7769, allocations: 98.92 kB / 0.6086 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002543/0.7772, allocations: 143 kB / 0.6087 GB, free: 112.6 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.0008822/0.778, allocations: 451.2 kB / 0.6091 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004479/0.7785, allocations: 165.1 kB / 0.6093 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006702/0.7852, allocations: 2.578 MB / 0.6118 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/0.7853, allocations: 17.62 kB / 0.6118 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.7853, allocations: 2.812 kB / 0.6118 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/0.7853, allocations: 11.86 kB / 0.6118 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.7954, allocations: 4.769 MB / 0.6165 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.7955, allocations: 16.02 kB / 0.6165 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/0.7972, allocations: 412.4 kB / 0.6169 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003588/0.8008, allocations: 0.5487 MB / 0.6174 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.8011, allocations: 84.5 kB / 0.6175 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006732/0.8078, allocations: 7.829 MB / 0.6252 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/0.8078, allocations: 24.69 kB / 0.6252 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006706/0.8146, allocations: 3.459 MB / 0.6286 GB, free: 100.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000529/0.8151, allocations: 239.9 kB / 0.6288 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/0.8154, allocations: 58.72 kB / 0.6288 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009858/0.8163, allocations: 46.52 kB / 0.6289 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/0.8167, allocations: 197.3 kB / 0.6291 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.8168, allocations: 96 kB / 0.6292 GB, free: 100.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.818, allocations: 0.8919 MB / 0.63 GB, free: 99.98 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.818, allocations: 0 / 0.63 GB, free: 99.98 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004318/0.8223, allocations: 1.198 MB / 0.6312 GB, free: 99.85 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.009221/0.8315, allocations: 5.21 MB / 0.6363 GB, free: 97.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004582/0.8362, allocations: 2.489 MB / 0.6387 GB, free: 96.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/0.8362, allocations: 1.625 kB / 0.6387 GB, free: 96.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.8381, allocations: 1.424 MB / 0.6401 GB, free: 95.52 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.8401, allocations: 353.7 kB / 0.6405 GB, free: 95.39 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02248/0.8626, allocations: 16.86 MB / 0.6569 GB, free: 84.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007293/0.8634, allocations: 1.433 MB / 0.6583 GB, free: 83.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.8648, allocations: 463.5 kB / 0.6588 GB, free: 82.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009675/0.8658, allocations: 0.9668 MB / 0.6597 GB, free: 81.99 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/0.8658, allocations: 2.656 kB / 0.6597 GB, free: 81.99 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08341/0.9492, allocations: 58.57 MB / 0.7169 GB, free: 24.26 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/18.51, allocations: 10.81 kB / 0.7169 GB, free: 24.25 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)