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.005555/0.005555, allocations: 102.8 kB / 15.73 MB, free: 6.055 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.001126/0.001126, allocations: 194.4 kB / 16.67 MB, free: 5.973 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.296/1.296, 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.07624/0.07624, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 60.12 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08285/0.08406, allocations: 53.61 MB / 478.3 MB, free: 6.266 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.03578/0.1199, allocations: 29.64 MB / 0.496 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2104/0.3303, allocations: 24.88 MB / 0.5203 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3319, allocations: 25.22 kB / 0.5204 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.3334, allocations: 0.601 MB / 0.5209 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.3383, allocations: 1.86 MB / 0.5228 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00866/0.3469, allocations: 3.425 MB / 0.5261 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00338/0.3503, allocations: 2.7 MB / 0.5287 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.3522, allocations: 1.762 MB / 0.5305 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.3537, allocations: 1.249 MB / 0.5317 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001654/0.3553, allocations: 1.419 MB / 0.5331 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003726/0.3557, allocations: 261.9 kB / 0.5333 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007838/0.3636, allocations: 2.698 MB / 0.536 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005187/0.3641, allocations: 0.6077 MB / 0.5365 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.3653, allocations: 1.27 MB / 0.5378 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.3755, allocations: 5.511 MB / 0.5432 GB, free: 3.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3756, allocations: 0 / 0.5432 GB, free: 3.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3756, allocations: 6.594 kB / 0.5432 GB, free: 3.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.637e-05/0.3757, allocations: 0 / 0.5432 GB, free: 3.684 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.005732/0.3814, allocations: 2.963 MB / 0.5461 GB, free: 1.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3815, allocations: 8.031 kB / 0.5461 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002548/0.3818, allocations: 304.1 kB / 0.5464 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001866/0.3836, allocations: 0.5012 MB / 0.5469 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.3858, allocations: 1.279 MB / 0.5481 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.386, allocations: 220.3 kB / 0.5483 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003323/0.3863, allocations: 223.7 kB / 0.5485 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/0.3906, allocations: 2.682 MB / 0.5511 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.642e-05/0.3906, allocations: 0.875 kB / 0.5511 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.3909, allocations: 98.53 kB / 0.5512 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.3909, allocations: 52 kB / 0.5513 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004844/0.3958, allocations: 3.158 MB / 0.5544 GB, free: 8.746 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.0148/0.4106, allocations: 9.218 MB / 0.5634 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/0.4133, allocations: 1.851 MB / 0.5652 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.4147, allocations: 0.8999 MB / 0.5661 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01097/0.4257, allocations: 7.435 MB / 0.5733 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.4257, allocations: 54.42 kB / 0.5734 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009992/0.4268, allocations: 210.2 kB / 0.5736 GB, free: 3.938 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 4.208e-06/0.4268, allocations: 2.656 kB / 0.5736 GB, free: 3.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03645/0.4632, allocations: 9.475 MB / 0.5828 GB, free: 10.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.4633, allocations: 124.1 kB / 0.5829 GB, free: 10.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.4649, allocations: 1.341 MB / 0.5843 GB, free: 8.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.4651, allocations: 53.7 kB / 0.5843 GB, free: 8.898 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006292/0.4658, allocations: 1.052 MB / 0.5853 GB, free: 7.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004904/0.4663, allocations: 0.5585 MB / 0.5859 GB, free: 7.266 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007237/0.467, allocations: 476.3 kB / 0.5863 GB, free: 6.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.409e-05/0.4671, allocations: 305.1 kB / 0.5866 GB, free: 6.492 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.4685, allocations: 0.8441 MB / 0.5875 GB, free: 5.645 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001975/0.4705, allocations: 1.715 MB / 0.5891 GB, free: 3.551 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.4742, allocations: 2.689 MB / 0.5918 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-05/0.4742, allocations: 8 kB / 0.5918 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008663/0.4829, allocations: 3.485 MB / 0.5952 GB, free: 13.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/0.4829, allocations: 20 kB / 0.5952 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4e-05/0.483, allocations: 31.94 kB / 0.5952 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00541/0.4884, allocations: 1.15 MB / 0.5963 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.4903, allocations: 0.5109 MB / 0.5968 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.5003, allocations: 7.62 MB / 0.6043 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.5022, allocations: 106.4 kB / 0.6044 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003315/0.5025, allocations: 140 kB / 0.6045 GB, free: 3.07 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.0009267/0.5035, allocations: 451.6 kB / 0.6049 GB, free: 2.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.5039, allocations: 158 kB / 0.6051 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007979/0.5119, allocations: 2.856 MB / 0.6079 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.512, allocations: 16 kB / 0.6079 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.512, allocations: 10.67 kB / 0.6079 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/0.512, allocations: 7.969 kB / 0.6079 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.5238, allocations: 4.868 MB / 0.6127 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.5239, allocations: 4 kB / 0.6127 GB, free: 10.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.525, allocations: 255.7 kB / 0.6129 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004959/0.53, allocations: 1.038 MB / 0.6139 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/0.5302, allocations: 63.95 kB / 0.614 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008462/0.5387, allocations: 6.913 MB / 0.6207 GB, free: 1.988 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.5387, allocations: 4 kB / 0.6207 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008759/0.5475, allocations: 3.677 MB / 0.6243 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.5479, allocations: 211.1 kB / 0.6245 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.5483, allocations: 38.66 kB / 0.6246 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.5494, allocations: 42.95 kB / 0.6246 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/0.5497, allocations: 149 kB / 0.6248 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.5499, allocations: 74.61 kB / 0.6248 GB, free: 13.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001155/0.551, allocations: 0.8919 MB / 0.6257 GB, free: 12.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5511, allocations: 0 / 0.6257 GB, free: 12.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003492/0.5546, allocations: 1.093 MB / 0.6268 GB, free: 11.76 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.01108/0.5657, allocations: 5.258 MB / 0.6319 GB, free: 6.508 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005345/0.571, allocations: 2.776 MB / 0.6346 GB, free: 3.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5711, allocations: 0 / 0.6346 GB, free: 3.68 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/0.5737, allocations: 1.462 MB / 0.636 GB, free: 2.156 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.5755, allocations: 286.5 kB / 0.6363 GB, free: 1.895 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0337/0.6092, allocations: 17.1 MB / 0.653 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.6104, allocations: 1.395 MB / 0.6544 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001385/0.6118, allocations: 393.2 kB / 0.6548 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/0.613, allocations: 0.8807 MB / 0.6556 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/0.613, allocations: 4 kB / 0.6556 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/0.7152, allocations: 57.81 MB / 0.7121 GB, free: 3.582 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.86/30.57, allocations: 10 kB / 0.7121 GB, free: 3.578 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)