Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.004797/0.004797, allocations: 99.77 kB / 15.73 MB, free: 6.02 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.001281/0.001281, allocations: 193.7 kB / 16.67 MB, free: 5.934 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08047/0.08047, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 63.91 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08468/0.08649, allocations: 53.6 MB / 478.3 MB, free: 6.281 MB / 350.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.ClimateChange.ElectrochemicalAcetateProduction): time 0.04083/0.1273, allocations: 30.24 MB / 0.4966 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.192/0.3193, allocations: 24.87 MB / 0.5209 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.3204, allocations: 27.53 kB / 0.5209 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.3218, allocations: 0.6026 MB / 0.5215 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004144/0.3259, allocations: 1.862 MB / 0.5233 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008699/0.3346, allocations: 3.42 MB / 0.5267 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003507/0.3381, allocations: 2.704 MB / 0.5293 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001917/0.3401, allocations: 1.755 MB / 0.531 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.3414, allocations: 1.251 MB / 0.5323 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.343, allocations: 1.42 MB / 0.5336 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003579/0.3433, allocations: 260.3 kB / 0.5339 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007882/0.3512, allocations: 2.695 MB / 0.5365 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004058/0.3516, allocations: 0.6111 MB / 0.5371 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009973/0.3526, allocations: 1.27 MB / 0.5384 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009768/0.3624, allocations: 5.535 MB / 0.5438 GB, free: 3.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.3624, allocations: 0 / 0.5438 GB, free: 3.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3625, allocations: 0 / 0.5438 GB, free: 3.316 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.18e-05/0.3625, allocations: 1.438 kB / 0.5438 GB, free: 3.316 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.004407/0.3669, allocations: 3.048 MB / 0.5467 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.367, allocations: 8.031 kB / 0.5468 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.3672, allocations: 306.8 kB / 0.547 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.369, allocations: 0.5151 MB / 0.5475 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.3711, allocations: 1.291 MB / 0.5488 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.3713, allocations: 222.1 kB / 0.549 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/0.3716, allocations: 216 kB / 0.5492 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004208/0.3758, allocations: 2.69 MB / 0.5519 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.049e-05/0.3759, allocations: 0 / 0.5519 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002165/0.3761, allocations: 88 kB / 0.5519 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-05/0.3762, allocations: 52 kB / 0.552 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004989/0.3812, allocations: 3.159 MB / 0.5551 GB, free: 8.102 MB / 398.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.01429/0.3955, allocations: 9.243 MB / 0.5641 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.398, allocations: 1.845 MB / 0.5659 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.3993, allocations: 0.9024 MB / 0.5668 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.4096, allocations: 7.449 MB / 0.5741 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.4096, allocations: 46.16 kB / 0.5741 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007044/0.4103, allocations: 210.7 kB / 0.5743 GB, free: 3.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 2.515e-06/0.4103, allocations: 0 / 0.5743 GB, free: 3.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03327/0.4436, allocations: 9.543 MB / 0.5836 GB, free: 9.742 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.4437, allocations: 124.1 kB / 0.5837 GB, free: 9.594 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/0.4453, allocations: 1.349 MB / 0.5851 GB, free: 8.227 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.4454, allocations: 60.39 kB / 0.5851 GB, free: 8.164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007627/0.4462, allocations: 1.081 MB / 0.5862 GB, free: 7.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004778/0.4467, allocations: 0.5888 MB / 0.5867 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006748/0.4474, allocations: 480.5 kB / 0.5872 GB, free: 6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4475, allocations: 301.1 kB / 0.5875 GB, free: 5.703 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.4489, allocations: 0.8441 MB / 0.5883 GB, free: 4.855 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.451, allocations: 1.719 MB / 0.59 GB, free: 2.758 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003675/0.4547, allocations: 2.685 MB / 0.5926 GB, free: 15.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/0.4547, allocations: 8 kB / 0.5926 GB, free: 15.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008443/0.4632, allocations: 3.494 MB / 0.596 GB, free: 12.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.4632, allocations: 16 kB / 0.596 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.035e-05/0.4633, allocations: 28 kB / 0.5961 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005097/0.4684, allocations: 1.154 MB / 0.5972 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/0.47, allocations: 0.5109 MB / 0.5977 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.4801, allocations: 7.629 MB / 0.6052 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.4818, allocations: 106.5 kB / 0.6053 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/0.4821, allocations: 142.6 kB / 0.6054 GB, free: 2.266 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000809/0.4829, allocations: 455.5 kB / 0.6058 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.4832, allocations: 166.9 kB / 0.606 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007602/0.4908, allocations: 2.842 MB / 0.6088 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.4909, allocations: 19.94 kB / 0.6088 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4909, allocations: 4 kB / 0.6088 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.4909, allocations: 7.969 kB / 0.6088 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.5018, allocations: 4.882 MB / 0.6136 GB, free: 9.863 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.5019, allocations: 4 kB / 0.6136 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.5029, allocations: 247.7 kB / 0.6138 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004664/0.5076, allocations: 1.038 MB / 0.6148 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.5077, allocations: 63.95 kB / 0.6149 GB, free: 8.523 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/0.5165, allocations: 6.915 MB / 0.6216 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.5165, allocations: 7.969 kB / 0.6216 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008422/0.5249, allocations: 3.689 MB / 0.6252 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004033/0.5253, allocations: 227.9 kB / 0.6255 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.5256, allocations: 39.94 kB / 0.6255 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009048/0.5265, allocations: 38.64 kB / 0.6255 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.5268, allocations: 141.1 kB / 0.6257 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.527, allocations: 71.95 kB / 0.6257 GB, free: 12.92 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.5281, allocations: 0.8869 MB / 0.6266 GB, free: 12.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5281, allocations: 0 / 0.6266 GB, free: 12.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003059/0.5312, allocations: 1.111 MB / 0.6277 GB, free: 10.92 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01095/0.5422, allocations: 5.273 MB / 0.6328 GB, free: 5.656 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.5473, allocations: 2.783 MB / 0.6355 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5474, allocations: 4 kB / 0.6356 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/0.5499, allocations: 1.465 MB / 0.637 GB, free: 1.309 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.5515, allocations: 282.5 kB / 0.6373 GB, free: 1.059 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/0.5829, allocations: 17.2 MB / 0.6541 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.5841, allocations: 1.403 MB / 0.6554 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001388/0.5855, allocations: 384 kB / 0.6558 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.5868, allocations: 0.8823 MB / 0.6567 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.5868, allocations: 0 / 0.6567 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1092/0.696, allocations: 56.89 MB / 0.7122 GB, free: 3.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.04/29.73, allocations: 7.188 kB / 0.7122 GB, free: 3.566 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)