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.001243/0.001243, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001314/0.001314, allocations: 192 kB / 16.25 MB, free: 6.629 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.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1735/0.1735, allocations: 15.32 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 63.91 kB / 369.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.08397, allocations: 53.61 MB / 423.5 MB, free: 14.56 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.2874/0.3714, allocations: 30.97 MB / 454.5 MB, free: 38.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02222/0.3937, allocations: 28.38 MB / 482.9 MB, free: 24.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.3953, allocations: 54.09 kB / 483 MB, free: 24.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.3967, allocations: 0.583 MB / 483.5 MB, free: 23.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004947/0.4017, allocations: 1.992 MB / 485.5 MB, free: 22.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00832/0.41, allocations: 3.443 MB / 489 MB, free: 20.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.4131, allocations: 2.845 MB / 491.8 MB, free: 19.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001472/0.4146, allocations: 1.667 MB / 493.5 MB, free: 18.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.4159, allocations: 1.387 MB / 494.9 MB, free: 18.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.417, allocations: 1.505 MB / 496.4 MB, free: 17.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002948/0.4173, allocations: 262.1 kB / 496.6 MB, free: 17.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008881/0.4262, allocations: 3.185 MB / 499.8 MB, free: 16.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006651/0.4269, allocations: 0.6124 MB / 0.4887 GB, free: 16.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.429, allocations: 1.31 MB / 0.49 GB, free: 15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.4406, allocations: 5.733 MB / 0.4956 GB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4406, allocations: 0 / 0.4956 GB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4406, allocations: 0 / 0.4956 GB, free: 10.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001/0.4407, allocations: 0 / 0.4956 GB, free: 10.26 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.006131/0.4469, allocations: 3.093 MB / 0.4986 GB, free: 7.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.4469, allocations: 8.031 kB / 0.4986 GB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005577/0.4475, allocations: 305.5 kB / 0.4989 GB, free: 7.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00228/0.4498, allocations: 0.5364 MB / 0.4994 GB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.4517, allocations: 1.264 MB / 0.5007 GB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.4518, allocations: 229.2 kB / 0.5009 GB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003713/0.4522, allocations: 224.7 kB / 0.5011 GB, free: 5.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003966/0.4562, allocations: 2.661 MB / 0.5037 GB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.353e-05/0.4562, allocations: 3.938 kB / 0.5037 GB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/0.4565, allocations: 93.12 kB / 0.5038 GB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/0.4565, allocations: 52 kB / 0.5038 GB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004157/0.4606, allocations: 3.307 MB / 0.5071 GB, free: 15.93 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.01265/0.4733, allocations: 8.681 MB / 0.5155 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/0.4758, allocations: 2.006 MB / 0.5175 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.4771, allocations: 0.929 MB / 0.5184 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.4877, allocations: 7.913 MB / 0.5261 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.4878, allocations: 43.88 kB / 0.5262 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=128): time 2.575e-06/0.4878, allocations: 0 / 0.5262 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=181): time 0.0294/0.5172, allocations: 8.213 MB / 0.5342 GB, free: 3.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.5173, allocations: 103.1 kB / 0.5343 GB, free: 2.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.5189, allocations: 1.35 MB / 0.5356 GB, free: 1.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.519, allocations: 57.7 kB / 0.5357 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006235/0.5197, allocations: 1.042 MB / 0.5367 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005025/0.5202, allocations: 0.6278 MB / 0.5373 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006662/0.5209, allocations: 488.8 kB / 0.5378 GB, free: 15.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.004e-05/0.5209, allocations: 301.1 kB / 0.538 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.5222, allocations: 0.8132 MB / 0.5388 GB, free: 14.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/0.524, allocations: 1.654 MB / 0.5405 GB, free: 12.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003182/0.5272, allocations: 2.61 MB / 0.543 GB, free: 9.238 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.607e-05/0.5273, allocations: 8 kB / 0.543 GB, free: 9.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006349/0.5336, allocations: 3.038 MB / 0.546 GB, free: 6.172 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.5337, allocations: 26.02 kB / 0.546 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/0.5337, allocations: 24 kB / 0.546 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003111/0.5368, allocations: 0.5147 MB / 0.5465 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/0.5402, allocations: 0.7997 MB / 0.5473 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007803/0.548, allocations: 8.043 MB / 0.5552 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.5497, allocations: 147.8 kB / 0.5553 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/0.55, allocations: 147.9 kB / 0.5554 GB, free: 11.85 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.0009088/0.5509, allocations: 448.9 kB / 0.5559 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004009/0.5513, allocations: 165.9 kB / 0.556 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006575/0.5579, allocations: 2.582 MB / 0.5586 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.5579, allocations: 16 kB / 0.5586 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.558, allocations: 12 kB / 0.5586 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.558, allocations: 11.95 kB / 0.5586 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009164/0.5672, allocations: 4.759 MB / 0.5632 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.5672, allocations: 12.25 kB / 0.5633 GB, free: 3.578 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/0.5687, allocations: 419.4 kB / 0.5637 GB, free: 3.168 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003313/0.5721, allocations: 0.5508 MB / 0.5642 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/0.5723, allocations: 79.97 kB / 0.5643 GB, free: 2.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007627/0.5799, allocations: 7.844 MB / 0.5719 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/0.5799, allocations: 23.88 kB / 0.5719 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006585/0.5865, allocations: 3.454 MB / 0.5753 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004169/0.587, allocations: 250.9 kB / 0.5756 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/0.5873, allocations: 51.98 kB / 0.5756 GB, free: 6.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.5884, allocations: 75.83 kB / 0.5757 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.5887, allocations: 200.7 kB / 0.5759 GB, free: 5.805 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.5889, allocations: 91.95 kB / 0.576 GB, free: 5.715 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001038/0.5899, allocations: 0.8889 MB / 0.5768 GB, free: 4.824 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5899, allocations: 0 / 0.5768 GB, free: 4.824 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003313/0.5933, allocations: 1.183 MB / 0.578 GB, free: 3.641 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.009433/0.6027, allocations: 5.218 MB / 0.5831 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006015/0.6087, allocations: 2.651 MB / 0.5857 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.6087, allocations: 0 / 0.5857 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.6106, allocations: 1.426 MB / 0.5871 GB, free: 10.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.6125, allocations: 352.1 kB / 0.5874 GB, free: 9.738 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1665/0.779, allocations: 19.02 MB / 0.606 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006852/0.7797, allocations: 1.429 MB / 0.6074 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001691/0.7814, allocations: 459 kB / 0.6078 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009707/0.7824, allocations: 0.9681 MB / 0.6087 GB, free: 125.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.7824, allocations: 0 / 0.6087 GB, free: 125.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08213/0.8645, allocations: 56.99 MB / 0.6644 GB, free: 97.52 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/0.8647, allocations: 211.5 kB / 0.6646 GB, free: 97.26 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.404/4.268, allocations: 0 / 0.6646 GB, free: 97.26 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)