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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0007709/0.0007709, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.0008233/0.0008233, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.2 MB / 240 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2025/0.2025, allocations: 15.27 MB / 306.3 MB, free: 15.81 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003311, allocations: 8.219 kB / 371.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2584, allocations: 54.63 MB / 426.2 MB, free: 40.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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.0/package.mo:3011:6-3011:65: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.007889/0.2663, allocations: 10.31 MB / 436.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01879/0.2852, allocations: 22.81 MB / 459.3 MB, free: 19.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001635/0.2868, allocations: 40.94 kB / 459.3 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.2883, allocations: 0.5418 MB / 459.9 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004964/0.2933, allocations: 1.715 MB / 461.6 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007642/0.301, allocations: 2.764 MB / 464.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002956/0.304, allocations: 2.482 MB / 466.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.3056, allocations: 1.373 MB / 468.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.3069, allocations: 1.003 MB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.3085, allocations: 1.244 MB / 470.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002965/0.3089, allocations: 136.3 kB / 470.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007419/0.3163, allocations: 2.449 MB / 473 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005801/0.3169, allocations: 469 kB / 473.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007431/0.3176, allocations: 437.4 kB / 473.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005933/0.3236, allocations: 4.12 MB / 478 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3236, allocations: 1.562 kB / 478.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3236, allocations: 4 kB / 478.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-05/0.3237, allocations: 0 / 478.1 MB, free: 11.32 MB / 350.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.005293/0.329, allocations: 2.496 MB / 480.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.329, allocations: 9.688 kB / 480.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004196/0.3295, allocations: 298.3 kB / 480.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/0.3314, allocations: 0.5009 MB / 481.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.3334, allocations: 1.201 MB / 482.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.3335, allocations: 221.3 kB / 482.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003117/0.3338, allocations: 215.4 kB / 483 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004408/0.3383, allocations: 2.665 MB / 485.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.182e-05/0.3383, allocations: 8.797 kB / 485.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/0.3385, allocations: 87.84 kB / 485.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.298e-05/0.3386, allocations: 53.16 kB / 485.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004746/0.3433, allocations: 3.151 MB / 488.9 MB, free: 6.23 MB / 350.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.01166/0.355, allocations: 9.214 MB / 498.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.3573, allocations: 1.837 MB / 500 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/0.3586, allocations: 0.896 MB / 0.4891 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.3687, allocations: 7.313 MB / 0.4963 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3688, allocations: 47.56 kB / 0.4963 GB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009567/0.3697, allocations: 202.2 kB / 0.4965 GB, free: 2.316 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 3.276e-06/0.3698, allocations: 0 / 0.4965 GB, free: 2.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.03313/0.4029, allocations: 9.57 MB / 0.5059 GB, free: 8.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.403, allocations: 124.1 kB / 0.506 GB, free: 8.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.4046, allocations: 1.333 MB / 0.5073 GB, free: 7.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001726/0.4048, allocations: 53.7 kB / 0.5073 GB, free: 7.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006112/0.4054, allocations: 1.046 MB / 0.5084 GB, free: 6.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004493/0.4058, allocations: 0.5585 MB / 0.5089 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.406, allocations: 48 kB / 0.509 GB, free: 5.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4061, allocations: 398.8 kB / 0.5093 GB, free: 5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.4075, allocations: 0.8363 MB / 0.5102 GB, free: 4.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/0.4093, allocations: 1.705 MB / 0.5118 GB, free: 2.055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.411, allocations: 1.083 MB / 0.5129 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.411, allocations: 8 kB / 0.5129 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008084/0.4191, allocations: 3.472 MB / 0.5163 GB, free: 13.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.4191, allocations: 22.59 kB / 0.5163 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.43e-05/0.4192, allocations: 28 kB / 0.5163 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005257/0.4245, allocations: 1.189 MB / 0.5175 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.4263, allocations: 0.5109 MB / 0.518 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009194/0.4355, allocations: 7.026 MB / 0.5248 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.4374, allocations: 131.7 kB / 0.525 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/0.4377, allocations: 147.9 kB / 0.5251 GB, free: 3.965 MB / 398.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 20,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009067/0.4386, allocations: 449.4 kB / 0.5255 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.4389, allocations: 162 kB / 0.5257 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007785/0.4467, allocations: 2.86 MB / 0.5285 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.4468, allocations: 16 kB / 0.5285 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.4468, allocations: 4 kB / 0.5285 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/0.4468, allocations: 7.969 kB / 0.5285 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.4574, allocations: 4.85 MB / 0.5333 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4574, allocations: 4 kB / 0.5333 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.4585, allocations: 255.6 kB / 0.5335 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004649/0.4631, allocations: 1.059 MB / 0.5345 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001998/0.4634, allocations: 63.95 kB / 0.5346 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007789/0.4712, allocations: 6.415 MB / 0.5409 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.4712, allocations: 12.02 kB / 0.5409 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008173/0.4794, allocations: 3.659 MB / 0.5444 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004894/0.4799, allocations: 227 kB / 0.5447 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.4801, allocations: 35.98 kB / 0.5447 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009832/0.4811, allocations: 67.88 kB / 0.5448 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.4814, allocations: 141.4 kB / 0.5449 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.4816, allocations: 71.95 kB / 0.545 GB, free: 15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.4826, allocations: 0.8725 MB / 0.5458 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4826, allocations: 3.938 kB / 0.5458 GB, free: 14.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003501/0.4862, allocations: 1.085 MB / 0.5469 GB, free: 13.04 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 21,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01041/0.4966, allocations: 5.216 MB / 0.552 GB, free: 7.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.5017, allocations: 2.755 MB / 0.5547 GB, free: 4.945 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.5017, allocations: 0 / 0.5547 GB, free: 4.945 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.5041, allocations: 1.463 MB / 0.5561 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.5059, allocations: 271.6 kB / 0.5563 GB, free: 3.164 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02159/0.5275, allocations: 12.75 MB / 0.5688 GB, free: 5.539 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000914/0.5285, allocations: 1.403 MB / 0.5702 GB, free: 4.102 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001626/0.5301, allocations: 395.6 kB / 0.5706 GB, free: 3.738 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.5312, allocations: 0.8819 MB / 0.5714 GB, free: 2.855 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5312, allocations: 0 / 0.5714 GB, free: 2.855 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2496/0.7809, allocations: 53.6 MB / 0.6238 GB, free: 129.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001218/0.781, allocations: 222.2 kB / 0.624 GB, free: 128.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.285/4.066, allocations: 3.234 kB / 0.624 GB, free: 128.8 MB / 462.1 MB (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/linux/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) Environment - environmentSimulation: