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.001294/0.001294, 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.001384/0.001384, allocations: 192.3 kB / 16.25 MB, free: 6.625 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.285/1.285, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1829/0.1829, allocations: 15.31 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 63.91 kB / 369.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09943, allocations: 53.61 MB / 423.5 MB, free: 14.54 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.3337/0.4332, allocations: 30.71 MB / 454.3 MB, free: 38.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0211/0.4543, allocations: 24.62 MB / 478.9 MB, free: 26.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.456, allocations: 54.84 kB / 478.9 MB, free: 26.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.4578, allocations: 0.5362 MB / 479.5 MB, free: 26.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004724/0.4625, allocations: 1.699 MB / 481.2 MB, free: 25.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008251/0.4708, allocations: 3.048 MB / 484.2 MB, free: 23.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00308/0.4739, allocations: 2.696 MB / 486.9 MB, free: 22.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.4756, allocations: 1.754 MB / 488.7 MB, free: 21.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.4769, allocations: 1.294 MB / 490 MB, free: 20.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00142/0.4783, allocations: 1.451 MB / 491.4 MB, free: 20.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003553/0.4787, allocations: 261.9 kB / 491.7 MB, free: 20.28 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007229/0.4859, allocations: 2.753 MB / 494.4 MB, free: 19.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004402/0.4864, allocations: 0.6147 MB / 495 MB, free: 19.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.4875, allocations: 1.279 MB / 496.3 MB, free: 18.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008617/0.4961, allocations: 5.273 MB / 0.4898 GB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4961, allocations: 0 / 0.4898 GB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4961, allocations: 7.875 kB / 0.4898 GB, free: 15.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.526e-05/0.4962, allocations: 0 / 0.4898 GB, free: 15.51 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.004701/0.5009, allocations: 2.974 MB / 0.4927 GB, free: 12.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.5009, allocations: 8.031 kB / 0.4927 GB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002998/0.5012, allocations: 303.3 kB / 0.493 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001834/0.5031, allocations: 0.4944 MB / 0.4935 GB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/0.5047, allocations: 1.249 MB / 0.4947 GB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.5049, allocations: 225.2 kB / 0.495 GB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/0.5051, allocations: 216.7 kB / 0.4952 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003716/0.5089, allocations: 2.688 MB / 0.4978 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.293e-05/0.5089, allocations: 0 / 0.4978 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.5091, allocations: 88 kB / 0.4979 GB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.5092, allocations: 52 kB / 0.4979 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004349/0.5135, allocations: 3.159 MB / 0.501 GB, free: 5.453 MB / 366.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.01288/0.5264, allocations: 9.262 MB / 0.51 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.5288, allocations: 1.833 MB / 0.5118 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.53, allocations: 0.8999 MB / 0.5127 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0099/0.5399, allocations: 7.469 MB / 0.52 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.54, allocations: 51.44 kB / 0.5201 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009818/0.541, allocations: 206.3 kB / 0.5203 GB, free: 1.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.607e-06/0.541, allocations: 0 / 0.5203 GB, free: 1.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03583/0.5768, allocations: 9.487 MB / 0.5295 GB, free: 7.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.5769, allocations: 120.1 kB / 0.5296 GB, free: 7.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.5785, allocations: 1.345 MB / 0.531 GB, free: 6.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.5787, allocations: 53.7 kB / 0.531 GB, free: 6.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006391/0.5793, allocations: 1.053 MB / 0.532 GB, free: 5.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/0.5798, allocations: 0.5624 MB / 0.5326 GB, free: 4.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006488/0.5805, allocations: 468.5 kB / 0.533 GB, free: 4.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.221e-05/0.5806, allocations: 309.1 kB / 0.5333 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.5819, allocations: 0.8441 MB / 0.5341 GB, free: 3.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/0.5838, allocations: 1.709 MB / 0.5358 GB, free: 1.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003384/0.5872, allocations: 2.697 MB / 0.5384 GB, free: 13.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.69e-05/0.5872, allocations: 8 kB / 0.5385 GB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008779/0.596, allocations: 3.475 MB / 0.5418 GB, free: 10.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.5961, allocations: 19.94 kB / 0.5419 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-05/0.5961, allocations: 31.98 kB / 0.5419 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005583/0.6017, allocations: 1.159 MB / 0.543 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/0.6036, allocations: 0.5148 MB / 0.5435 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009937/0.6136, allocations: 7.631 MB / 0.551 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.6156, allocations: 127.8 kB / 0.5511 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003615/0.616, allocations: 143.9 kB / 0.5512 GB, free: 360 kB / 414.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.0009747/0.617, allocations: 449 kB / 0.5517 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.6174, allocations: 162 kB / 0.5518 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008437/0.6259, allocations: 2.852 MB / 0.5546 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.6259, allocations: 20 kB / 0.5546 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6259, allocations: 0 / 0.5546 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.6259, allocations: 11.97 kB / 0.5546 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.6372, allocations: 4.866 MB / 0.5594 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.6373, allocations: 256 / 0.5594 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.6384, allocations: 259.7 kB / 0.5596 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004988/0.6434, allocations: 1.045 MB / 0.5607 GB, free: 6.547 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.6435, allocations: 59.97 kB / 0.5607 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008528/0.6521, allocations: 6.914 MB / 0.5675 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.6521, allocations: 7.969 kB / 0.5675 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009405/0.6615, allocations: 3.671 MB / 0.5711 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005732/0.6622, allocations: 219.1 kB / 0.5713 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.6626, allocations: 36 kB / 0.5713 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.6641, allocations: 67.75 kB / 0.5714 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005115/0.6646, allocations: 149 kB / 0.5715 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002582/0.6649, allocations: 79.95 kB / 0.5716 GB, free: 10.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001448/0.6663, allocations: 0.8804 MB / 0.5725 GB, free: 9.953 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6664, allocations: 0 / 0.5725 GB, free: 9.953 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004566/0.6709, allocations: 1.093 MB / 0.5735 GB, free: 8.859 MB / 446.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.01218/0.6831, allocations: 5.245 MB / 0.5786 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006933/0.6901, allocations: 2.994 MB / 0.5816 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.6901, allocations: 0 / 0.5816 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.6928, allocations: 1.469 MB / 0.583 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.6947, allocations: 273.1 kB / 0.5833 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/0.8853, allocations: 19.13 MB / 0.6019 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/0.8861, allocations: 1.401 MB / 0.6033 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001532/0.8876, allocations: 390.5 kB / 0.6037 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009917/0.8886, allocations: 0.8808 MB / 0.6045 GB, free: 128.2 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.8886, allocations: 0 / 0.6045 GB, free: 128.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07836/0.967, allocations: 56.12 MB / 0.6593 GB, free: 103.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/0.9672, allocations: 246.8 kB / 0.6596 GB, free: 103.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.45/4.417, allocations: 4 kB / 0.6596 GB, free: 103.6 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/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)