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.001391/0.001391, allocations: 107 kB / 16.45 MB, free: 6.508 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.001527/0.001527, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.423/1.423, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.1414/0.1414, allocations: 23.85 MB / 332.7 MB, free: 12.41 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.002046/0.002046, allocations: 67.89 kB / 466 MB, free: 10.13 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3014, allocations: 59.82 MB / 0.5135 GB, free: 8.848 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.04346/0.3449, allocations: 30.73 MB / 0.5435 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03313/0.378, allocations: 25.01 MB / 0.5679 GB, free: 3.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001753/0.3798, allocations: 31.75 kB / 0.5679 GB, free: 3.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.3816, allocations: 0.6059 MB / 0.5685 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005724/0.3873, allocations: 1.888 MB / 0.5704 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.3975, allocations: 3.441 MB / 0.5737 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004861/0.4023, allocations: 2.711 MB / 0.5764 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/0.4047, allocations: 1.453 MB / 0.5778 GB, free: 9.367 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.4072, allocations: 1.278 MB / 0.5791 GB, free: 8.086 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002741/0.4099, allocations: 1.448 MB / 0.5805 GB, free: 6.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005029/0.4104, allocations: 260 kB / 0.5807 GB, free: 6.379 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007614/0.418, allocations: 2.73 MB / 0.5834 GB, free: 3.645 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007025/0.4187, allocations: 0.6075 MB / 0.584 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.4202, allocations: 1.272 MB / 0.5852 GB, free: 1.758 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.4316, allocations: 5.716 MB / 0.5908 GB, free: 12.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4316, allocations: 4 kB / 0.5908 GB, free: 12.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4316, allocations: 4 kB / 0.5908 GB, free: 12.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.742e-05/0.4316, allocations: 0 / 0.5908 GB, free: 12.01 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.006002/0.4376, allocations: 3.024 MB / 0.5938 GB, free: 8.918 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4377, allocations: 12.03 kB / 0.5938 GB, free: 8.906 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004157/0.4381, allocations: 296.1 kB / 0.5941 GB, free: 8.605 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002163/0.4403, allocations: 0.5181 MB / 0.5946 GB, free: 8.086 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.4427, allocations: 1.295 MB / 0.5958 GB, free: 6.742 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.443, allocations: 223.8 kB / 0.596 GB, free: 6.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.4434, allocations: 216 kB / 0.5962 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/0.4481, allocations: 2.708 MB / 0.5989 GB, free: 3.477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/0.4481, allocations: 0 / 0.5989 GB, free: 3.477 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002338/0.4483, allocations: 88 kB / 0.599 GB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.594e-05/0.4484, allocations: 52 kB / 0.599 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005373/0.4538, allocations: 3.168 MB / 0.6021 GB, free: 172 kB / 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.01467/0.4684, allocations: 9.321 MB / 0.6112 GB, free: 6.492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002753/0.4712, allocations: 1.762 MB / 0.6129 GB, free: 4.637 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.4726, allocations: 0.8296 MB / 0.6138 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.4841, allocations: 7.517 MB / 0.6211 GB, free: 11.53 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.4841, allocations: 51.56 kB / 0.6211 GB, free: 11.47 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001047/0.4852, allocations: 230.7 kB / 0.6214 GB, free: 11.24 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 3.397e-06/0.4852, allocations: 0 / 0.6214 GB, free: 11.24 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03698/0.5222, allocations: 9.531 MB / 0.6307 GB, free: 1.602 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.5222, allocations: 120.1 kB / 0.6308 GB, free: 1.457 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.524, allocations: 1.345 MB / 0.6321 GB, free: 96 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.5241, allocations: 53.7 kB / 0.6321 GB, free: 36 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008121/0.5249, allocations: 1.088 MB / 0.6332 GB, free: 14.93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000561/0.5255, allocations: 0.5927 MB / 0.6338 GB, free: 14.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007557/0.5262, allocations: 476.7 kB / 0.6342 GB, free: 13.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5264, allocations: 305.1 kB / 0.6345 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/0.5279, allocations: 0.8441 MB / 0.6354 GB, free: 12.71 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.5302, allocations: 1.72 MB / 0.637 GB, free: 10.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004187/0.5344, allocations: 2.689 MB / 0.6397 GB, free: 7.504 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.5344, allocations: 8 kB / 0.6397 GB, free: 7.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009071/0.5435, allocations: 3.46 MB / 0.6431 GB, free: 4.012 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.5435, allocations: 23.94 kB / 0.6431 GB, free: 3.988 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-05/0.5436, allocations: 28 kB / 0.6431 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00553/0.5491, allocations: 1.162 MB / 0.6442 GB, free: 2.785 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/0.551, allocations: 0.5187 MB / 0.6447 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.5618, allocations: 7.628 MB / 0.6522 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.5636, allocations: 99.97 kB / 0.6523 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.5639, allocations: 147.9 kB / 0.6524 GB, free: 9.957 MB / 0.4981 GB 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.0008774/0.5648, allocations: 448.9 kB / 0.6529 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004148/0.5652, allocations: 162.9 kB / 0.653 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008388/0.5736, allocations: 2.847 MB / 0.6558 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.5736, allocations: 16 kB / 0.6558 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5736, allocations: 4 kB / 0.6558 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.5736, allocations: 7.969 kB / 0.6558 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.5853, allocations: 4.856 MB / 0.6606 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.5854, allocations: 0 / 0.6606 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.5865, allocations: 259.9 kB / 0.6608 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004989/0.5915, allocations: 1.034 MB / 0.6618 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001695/0.5917, allocations: 63.95 kB / 0.6619 GB, free: 136 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009262/0.6009, allocations: 6.932 MB / 0.6686 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.6009, allocations: 7.938 kB / 0.6687 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009092/0.61, allocations: 3.658 MB / 0.6722 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004176/0.6104, allocations: 224 kB / 0.6724 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.6107, allocations: 32 kB / 0.6725 GB, free: 4.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.6118, allocations: 47.92 kB / 0.6725 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/0.6121, allocations: 145.1 kB / 0.6727 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.6123, allocations: 71.95 kB / 0.6727 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001247/0.6135, allocations: 0.8803 MB / 0.6736 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6135, allocations: 3.938 kB / 0.6736 GB, free: 3.613 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003315/0.6169, allocations: 1.111 MB / 0.6747 GB, free: 2.5 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.01159/0.6284, allocations: 5.28 MB / 0.6798 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005458/0.6339, allocations: 2.646 MB / 0.6824 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.6339, allocations: 0 / 0.6824 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002646/0.6366, allocations: 1.392 MB / 0.6838 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.6382, allocations: 277.5 kB / 0.684 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03313/0.6713, allocations: 17.19 MB / 0.7008 GB, free: 6.371 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.6725, allocations: 1.395 MB / 0.7022 GB, free: 4.941 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001312/0.6738, allocations: 395.4 kB / 0.7026 GB, free: 4.566 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/0.675, allocations: 0.8858 MB / 0.7034 GB, free: 3.68 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/0.675, allocations: 0 / 0.7034 GB, free: 3.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3287/1.004, allocations: 57.78 MB / 0.7599 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.92/32.93, allocations: 5.375 kB / 0.7599 GB, free: 164.9 MB / 0.5606 GB " [Timeout remaining time 627] (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 35.74190432600153] Failed to read output from testmodel.py, exit status != 0: 33.06117841799278 33.078187172 32.643062827 Calling exit ...