Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 216 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.434/1.434, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1487/0.1487, allocations: 23.89 MB / 336.3 MB, free: 10.96 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 76.12 kB / 471.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.313, allocations: 59.87 MB / 0.5185 GB, free: 9.516 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction): time 0.07514/0.3881, allocations: 29.74 MB / 0.5476 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03075/0.4189, allocations: 21.97 MB / 0.569 GB, free: 6.191 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.4208, allocations: 35.75 kB / 0.5691 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.4226, allocations: 0.5565 MB / 0.5696 GB, free: 5.621 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005917/0.4286, allocations: 1.847 MB / 0.5714 GB, free: 3.762 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.4386, allocations: 3.472 MB / 0.5748 GB, free: 276 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004823/0.4434, allocations: 2.711 MB / 0.5775 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002125/0.4456, allocations: 1.438 MB / 0.5789 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.4475, allocations: 1.286 MB / 0.5801 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.4501, allocations: 1.448 MB / 0.5815 GB, free: 9.316 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005678/0.4506, allocations: 264 kB / 0.5818 GB, free: 9.059 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009299/0.4599, allocations: 2.625 MB / 0.5843 GB, free: 6.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.461, allocations: 0.6037 MB / 0.5849 GB, free: 5.824 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.4631, allocations: 1.074 MB / 0.586 GB, free: 4.746 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.4772, allocations: 5.692 MB / 0.5915 GB, free: 15.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.4772, allocations: 0 / 0.5915 GB, free: 15.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4772, allocations: 4 kB / 0.5915 GB, free: 15.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001124/0.4773, allocations: 0 / 0.5915 GB, free: 15.03 MB / 446.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.006972/0.4843, allocations: 2.958 MB / 0.5944 GB, free: 12.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.4843, allocations: 12.03 kB / 0.5944 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003999/0.4847, allocations: 296.1 kB / 0.5947 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002281/0.487, allocations: 0.5181 MB / 0.5952 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002592/0.4896, allocations: 1.227 MB / 0.5964 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/0.4898, allocations: 275.2 kB / 0.5967 GB, free: 9.625 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004187/0.4903, allocations: 223.9 kB / 0.5969 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004897/0.4952, allocations: 2.733 MB / 0.5996 GB, free: 6.555 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.741e-05/0.4952, allocations: 8 kB / 0.5996 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/0.4954, allocations: 84 kB / 0.5997 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-05/0.4955, allocations: 56 kB / 0.5997 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005699/0.5012, allocations: 3.156 MB / 0.6028 GB, free: 3.25 MB / 446.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.01559/0.5168, allocations: 7.998 MB / 0.6106 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.5195, allocations: 1.455 MB / 0.612 GB, free: 9.59 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.5209, allocations: 0.8302 MB / 0.6128 GB, free: 8.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01069/0.5316, allocations: 4.358 MB / 0.6171 GB, free: 4.359 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.5317, allocations: 47.55 kB / 0.6171 GB, free: 4.305 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001145/0.5328, allocations: 238.7 kB / 0.6174 GB, free: 4.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.709e-06/0.5328, allocations: 0 / 0.6174 GB, free: 4.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.04032/0.5731, allocations: 9.31 MB / 0.6265 GB, free: 10.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.008e-05/0.5732, allocations: 120.1 kB / 0.6266 GB, free: 10.56 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.5752, allocations: 1.407 MB / 0.6279 GB, free: 9.137 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002508/0.5754, allocations: 57.77 kB / 0.628 GB, free: 9.074 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008967/0.5763, allocations: 1.088 MB / 0.6291 GB, free: 7.973 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006142/0.5769, allocations: 0.5888 MB / 0.6296 GB, free: 7.379 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000806/0.5777, allocations: 472.6 kB / 0.6301 GB, free: 6.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5779, allocations: 309 kB / 0.6304 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.5794, allocations: 0.8519 MB / 0.6312 GB, free: 5.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002516/0.582, allocations: 1.716 MB / 0.6329 GB, free: 3.629 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004221/0.5862, allocations: 2.713 MB / 0.6355 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.31e-05/0.5862, allocations: 8 kB / 0.6356 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01005/0.5963, allocations: 3.476 MB / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.509e-05/0.5963, allocations: 19.94 kB / 0.639 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.503e-05/0.5964, allocations: 28 kB / 0.639 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006283/0.6026, allocations: 1.166 MB / 0.6401 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002121/0.6048, allocations: 0.5109 MB / 0.6406 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.6164, allocations: 7.263 MB / 0.6477 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.6185, allocations: 103.9 kB / 0.6478 GB, free: 3.539 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003733/0.6189, allocations: 140 kB / 0.648 GB, free: 3.402 MB / 494.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.0009619/0.6199, allocations: 452.9 kB / 0.6484 GB, free: 2.949 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004885/0.6204, allocations: 166.9 kB / 0.6485 GB, free: 2.785 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008904/0.6293, allocations: 2.842 MB / 0.6513 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.702e-05/0.6293, allocations: 16 kB / 0.6513 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.6293, allocations: 4 kB / 0.6513 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.735e-05/0.6294, allocations: 7.969 kB / 0.6514 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.6423, allocations: 4.575 MB / 0.6558 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.6423, allocations: 8.234 kB / 0.6558 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.6435, allocations: 251.7 kB / 0.6561 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005416/0.649, allocations: 1.042 MB / 0.6571 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/0.6492, allocations: 59.95 kB / 0.6571 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009489/0.6586, allocations: 6.564 MB / 0.6635 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.6586, allocations: 3.938 kB / 0.6636 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00952/0.6682, allocations: 3.654 MB / 0.6671 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004334/0.6686, allocations: 150.8 kB / 0.6673 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.6689, allocations: 39.94 kB / 0.6673 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.67, allocations: 51.92 kB / 0.6674 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/0.6703, allocations: 149 kB / 0.6675 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/0.6705, allocations: 71.95 kB / 0.6676 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001236/0.6717, allocations: 0.8921 MB / 0.6684 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6717, allocations: 0 / 0.6684 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003376/0.6751, allocations: 1.111 MB / 0.6695 GB, free: 12.75 MB / 0.5137 GB 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.01215/0.6873, allocations: 5.271 MB / 0.6747 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00553/0.6928, allocations: 2.571 MB / 0.6772 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6928, allocations: 4 kB / 0.6772 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.6955, allocations: 1.312 MB / 0.6785 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.6971, allocations: 278.3 kB / 0.6787 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03509/0.7322, allocations: 17.23 MB / 0.6956 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009578/0.7332, allocations: 0.8269 MB / 0.6964 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00139/0.7346, allocations: 396.8 kB / 0.6967 GB, free: 15.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.7359, allocations: 0.8818 MB / 0.6976 GB, free: 14.64 MB / 0.545 GB Notification: Performance of SimCode: time 1.513e-06/0.7359, allocations: 0 / 0.6976 GB, free: 14.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3364/1.072, allocations: 59.48 MB / 0.7557 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.71, allocations: 5.125 kB / 0.7557 GB, free: 170.3 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.39428735501133] Failed to read output from testmodel.py, exit status != 0: 16.85988722901675 16.877120397 16.396442851 Calling exit ...