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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 107 kB / 16.45 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 195.6 kB / 19.41 MB, free: 3.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08728/0.08728, allocations: 15.54 MB / 318.2 MB, free: 10.22 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 71.88 kB / 444.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1022, allocations: 56.54 MB / 0.4897 GB, free: 4.895 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.3951/0.4973, allocations: 30.68 MB / 0.5197 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02704/0.5243, allocations: 24.96 MB / 0.5441 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.5258, allocations: 26.53 kB / 0.5441 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.5277, allocations: 0.6062 MB / 0.5447 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0057/0.5334, allocations: 1.879 MB / 0.5465 GB, free: 6.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.5436, allocations: 3.443 MB / 0.5499 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004029/0.5476, allocations: 2.702 MB / 0.5525 GB, free: 2.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001919/0.5495, allocations: 1.462 MB / 0.5539 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001554/0.5511, allocations: 1.248 MB / 0.5552 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.5529, allocations: 1.451 MB / 0.5566 GB, free: 300 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.5531, allocations: 263.8 kB / 0.5568 GB, free: 300 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008386/0.5615, allocations: 2.73 MB / 0.5595 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008232/0.5624, allocations: 0.6095 MB / 0.5601 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.564, allocations: 1.273 MB / 0.5613 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.5771, allocations: 5.543 MB / 0.5667 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/0.5771, allocations: 3.5 kB / 0.5667 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5771, allocations: 0 / 0.5667 GB, free: 10.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.342e-05/0.5772, allocations: 0 / 0.5667 GB, free: 10.44 MB / 414.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.006826/0.584, allocations: 3.039 MB / 0.5697 GB, free: 8.324 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.584, allocations: 6.938 kB / 0.5697 GB, free: 8.324 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000342/0.5844, allocations: 300.2 kB / 0.57 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002071/0.5864, allocations: 0.5166 MB / 0.5705 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00248/0.5889, allocations: 1.281 MB / 0.5718 GB, free: 6.855 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.5891, allocations: 227.9 kB / 0.572 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/0.5895, allocations: 219.3 kB / 0.5722 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004726/0.5943, allocations: 2.693 MB / 0.5748 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-05/0.5943, allocations: 4 kB / 0.5748 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.5945, allocations: 88 kB / 0.5749 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.732e-05/0.5946, allocations: 56 kB / 0.575 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005515/0.6001, allocations: 3.172 MB / 0.5781 GB, free: 424 kB / 414.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.01675/0.6168, allocations: 9.301 MB / 0.5871 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002899/0.6197, allocations: 1.759 MB / 0.5889 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.6212, allocations: 0.8296 MB / 0.5897 GB, free: 4.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.6336, allocations: 7.485 MB / 0.597 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.6336, allocations: 47.56 kB / 0.597 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0011/0.6347, allocations: 234.7 kB / 0.5972 GB, free: 11.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 2.905e-06/0.6347, allocations: 0 / 0.5972 GB, free: 11.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03859/0.6733, allocations: 9.554 MB / 0.6066 GB, free: 1.879 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.519e-05/0.6734, allocations: 120.1 kB / 0.6067 GB, free: 1.734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.6752, allocations: 1.349 MB / 0.608 GB, free: 376 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/0.6755, allocations: 53.7 kB / 0.6081 GB, free: 316 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008504/0.6763, allocations: 1.081 MB / 0.6091 GB, free: 15.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006264/0.677, allocations: 0.581 MB / 0.6097 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007423/0.6777, allocations: 476.6 kB / 0.6101 GB, free: 14.15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.6778, allocations: 313 kB / 0.6104 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.6794, allocations: 0.8441 MB / 0.6113 GB, free: 13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/0.6817, allocations: 1.712 MB / 0.6129 GB, free: 10.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004178/0.6859, allocations: 2.689 MB / 0.6156 GB, free: 7.793 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.199e-05/0.6859, allocations: 12 kB / 0.6156 GB, free: 7.781 MB / 462.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009496/0.6954, allocations: 3.472 MB / 0.619 GB, free: 4.285 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.6954, allocations: 23.06 kB / 0.619 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.497e-05/0.6955, allocations: 28 kB / 0.619 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005815/0.7013, allocations: 1.166 MB / 0.6201 GB, free: 3.059 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/0.7033, allocations: 0.5109 MB / 0.6206 GB, free: 2.547 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.7144, allocations: 7.617 MB / 0.6281 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.7163, allocations: 107.9 kB / 0.6282 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/0.7166, allocations: 140 kB / 0.6283 GB, free: 10.24 MB / 478.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.0009312/0.7175, allocations: 456.8 kB / 0.6288 GB, free: 9.781 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.718, allocations: 166.9 kB / 0.6289 GB, free: 9.617 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008691/0.7267, allocations: 2.822 MB / 0.6317 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.7267, allocations: 16.11 kB / 0.6317 GB, free: 6.758 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.7267, allocations: 11.94 kB / 0.6317 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.7267, allocations: 7.969 kB / 0.6317 GB, free: 6.738 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.7392, allocations: 4.868 MB / 0.6365 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.7392, allocations: 4 kB / 0.6365 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.7404, allocations: 251.7 kB / 0.6367 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005258/0.7456, allocations: 1.046 MB / 0.6377 GB, free: 456 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/0.7458, allocations: 63.95 kB / 0.6378 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009396/0.7552, allocations: 6.929 MB / 0.6446 GB, free: 9.016 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.7552, allocations: 3.938 kB / 0.6446 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009279/0.7645, allocations: 3.666 MB / 0.6481 GB, free: 5.289 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004805/0.765, allocations: 220 kB / 0.6483 GB, free: 5.055 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.7652, allocations: 35.98 kB / 0.6484 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.7663, allocations: 43.92 kB / 0.6484 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/0.7666, allocations: 141.1 kB / 0.6486 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.7668, allocations: 71.95 kB / 0.6486 GB, free: 4.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.768, allocations: 0.8882 MB / 0.6495 GB, free: 3.875 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.768, allocations: 3.938 kB / 0.6495 GB, free: 3.871 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003443/0.7714, allocations: 1.111 MB / 0.6506 GB, free: 2.758 MB / 494.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.01178/0.7832, allocations: 5.258 MB / 0.6557 GB, free: 13.43 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.005534/0.7887, allocations: 2.643 MB / 0.6583 GB, free: 10.73 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.7887, allocations: 0 / 0.6583 GB, free: 10.73 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.002723/0.7915, allocations: 1.388 MB / 0.6597 GB, free: 9.277 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.7932, allocations: 285.4 kB / 0.6599 GB, free: 8.996 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03491/0.8281, allocations: 17.17 MB / 0.6767 GB, free: 6.664 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.8293, allocations: 1.407 MB / 0.6781 GB, free: 5.223 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001456/0.8308, allocations: 387.8 kB / 0.6784 GB, free: 4.844 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.8321, allocations: 0.878 MB / 0.6793 GB, free: 3.969 MB / 0.5138 GB Notification: Performance of SimCode: time 1.062e-06/0.8321, allocations: 0 / 0.6793 GB, free: 3.969 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.31/1.142, allocations: 57.19 MB / 0.7351 GB, free: 177.2 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.69/32.83, allocations: 6.031 kB / 0.7351 GB, free: 177.2 MB / 0.5451 GB " [Timeout remaining time 627] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 35.557182531803846] Failed to read output from testmodel.py, exit status != 0: 32.96264498401433 32.982881351 32.402005246 Calling exit ...