Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_H2O_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.004896/0.004896, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001166/0.001166, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.193/0.193, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2507, allocations: 53.61 MB / 478.3 MB, free: 25.57 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.H2O_ElectrochemicalCell): time 0.03403/0.2847, allocations: 27.79 MB / 0.4942 GB, free: 6.922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.3057, allocations: 19.39 MB / 0.5132 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001469/0.3072, allocations: 19.88 kB / 0.5132 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.3086, allocations: 0.4963 MB / 0.5137 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003981/0.3126, allocations: 1.234 MB / 0.5149 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00702/0.3196, allocations: 2.827 MB / 0.5176 GB, free: 14.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002946/0.3226, allocations: 2.094 MB / 0.5197 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.3242, allocations: 1.345 MB / 0.521 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.3253, allocations: 0.9115 MB / 0.5219 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.3265, allocations: 1.055 MB / 0.5229 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002689/0.3268, allocations: 200 kB / 0.5231 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005535/0.3324, allocations: 2.056 MB / 0.5251 GB, free: 7.125 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.3328, allocations: 470.5 kB / 0.5256 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009375/0.3338, allocations: 0.9839 MB / 0.5265 GB, free: 5.676 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008899/0.3427, allocations: 4.2 MB / 0.5306 GB, free: 1.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3427, allocations: 0 / 0.5306 GB, free: 1.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3427, allocations: 4 kB / 0.5306 GB, free: 1.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.3428, allocations: 0 / 0.5306 GB, free: 1.457 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004788/0.3475, allocations: 2.345 MB / 0.5329 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.3476, allocations: 12.03 kB / 0.5329 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002562/0.3479, allocations: 236.8 kB / 0.5332 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001536/0.3494, allocations: 443.3 kB / 0.5336 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.3512, allocations: 1.072 MB / 0.5346 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.3514, allocations: 186.8 kB / 0.5348 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/0.3517, allocations: 171.9 kB / 0.535 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/0.3548, allocations: 2.218 MB / 0.5371 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.3548, allocations: 3.938 kB / 0.5371 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/0.355, allocations: 68 kB / 0.5372 GB, free: 10.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.355, allocations: 40 kB / 0.5372 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003761/0.3588, allocations: 2.668 MB / 0.5399 GB, free: 7.816 MB / 414.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.01042/0.3693, allocations: 7.212 MB / 0.5469 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.371, allocations: 1.184 MB / 0.5481 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007945/0.3718, allocations: 0.5487 MB / 0.5486 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007509/0.3793, allocations: 5.119 MB / 0.5536 GB, free: 8.883 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.3794, allocations: 43.12 kB / 0.5536 GB, free: 8.832 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004196/0.3798, allocations: 114.6 kB / 0.5537 GB, free: 8.719 MB / 430.1 MB Notification: Performance of pre-optimization done (n=71): time 4.218e-06/0.3798, allocations: 0 / 0.5537 GB, free: 8.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.01788/0.3977, allocations: 4.807 MB / 0.5584 GB, free: 3.785 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3978, allocations: 119.8 kB / 0.5585 GB, free: 3.645 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.3996, allocations: 1.474 MB / 0.56 GB, free: 2.156 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.3997, allocations: 45.7 kB / 0.56 GB, free: 2.105 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.4003, allocations: 0.8971 MB / 0.5609 GB, free: 1.191 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003057/0.4006, allocations: 343.3 kB / 0.5612 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000519/0.4011, allocations: 355.1 kB / 0.5616 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4013, allocations: 301.1 kB / 0.5619 GB, free: 204 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009777/0.4023, allocations: 0.6208 MB / 0.5625 GB, free: 15.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.4038, allocations: 1.325 MB / 0.5638 GB, free: 13.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00265/0.4065, allocations: 1.925 MB / 0.5656 GB, free: 11.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/0.4065, allocations: 4 kB / 0.5656 GB, free: 11.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00528/0.4118, allocations: 2.37 MB / 0.568 GB, free: 9.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.4119, allocations: 15.94 kB / 0.568 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/0.4119, allocations: 24 kB / 0.568 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.4144, allocations: 379.1 kB / 0.5684 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/0.417, allocations: 0.5617 MB / 0.5689 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008164/0.4252, allocations: 7.909 MB / 0.5766 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.4267, allocations: 79.72 kB / 0.5767 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/0.427, allocations: 108 kB / 0.5768 GB, free: 15.58 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008566/0.4279, allocations: 375.5 kB / 0.5772 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.4283, allocations: 134.3 kB / 0.5773 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004591/0.4329, allocations: 1.519 MB / 0.5788 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4329, allocations: 12 kB / 0.5788 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4329, allocations: 0 / 0.5788 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.4329, allocations: 4.125 kB / 0.5788 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006926/0.4399, allocations: 3.023 MB / 0.5817 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.4399, allocations: 4 kB / 0.5818 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/0.4408, allocations: 219.8 kB / 0.582 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/0.4435, allocations: 408.5 kB / 0.5824 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.4436, allocations: 35.98 kB / 0.5824 GB, free: 9.641 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007748/0.4514, allocations: 7.715 MB / 0.5899 GB, free: 1.305 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.4514, allocations: 11.94 kB / 0.5899 GB, free: 1.293 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005024/0.4565, allocations: 2.164 MB / 0.592 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/0.4569, allocations: 195.5 kB / 0.5922 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/0.4572, allocations: 35.98 kB / 0.5923 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008211/0.458, allocations: 28 kB / 0.5923 GB, free: 14.74 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.4583, allocations: 112.3 kB / 0.5924 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.696e-05/0.4584, allocations: 47.98 kB / 0.5924 GB, free: 14.58 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001228/0.4596, allocations: 1.017 MB / 0.5934 GB, free: 13.55 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4596, allocations: 0 / 0.5934 GB, free: 13.55 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00282/0.4625, allocations: 0.8159 MB / 0.5942 GB, free: 12.74 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006883/0.4693, allocations: 3.487 MB / 0.5976 GB, free: 9.121 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003409/0.4728, allocations: 1.766 MB / 0.5994 GB, free: 7.336 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.4728, allocations: 4.25 kB / 0.5994 GB, free: 7.332 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.4742, allocations: 0.9918 MB / 0.6003 GB, free: 6.285 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.476, allocations: 235.6 kB / 0.6006 GB, free: 6.059 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2438/0.7198, allocations: 13.32 MB / 0.6136 GB, free: 112.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.7208, allocations: 1.223 MB / 0.6148 GB, free: 111.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.7221, allocations: 317 kB / 0.6151 GB, free: 111.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008782/0.723, allocations: 0.6635 MB / 0.6157 GB, free: 111.1 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.723, allocations: 0 / 0.6157 GB, free: 111.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07843/0.8014, allocations: 40.89 MB / 0.6556 GB, free: 87.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.84/26.64, allocations: 6.562 kB / 0.6556 GB, free: 87.57 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)