Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001737/0.001737, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.00213/0.00213, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1415/0.1415, allocations: 23.89 MB / 332.7 MB, free: 12.34 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_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.00216/0.00216, allocations: 67.89 kB / 466 MB, free: 10.06 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2991, allocations: 59.82 MB / 0.5135 GB, free: 8.863 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.04412/0.3432, allocations: 30.92 MB / 0.5437 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0328/0.376, allocations: 25.01 MB / 0.5682 GB, free: 2.961 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001887/0.3779, allocations: 35.75 kB / 0.5682 GB, free: 2.926 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.3798, allocations: 0.6062 MB / 0.5688 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005909/0.3857, allocations: 1.878 MB / 0.5706 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.396, allocations: 3.441 MB / 0.574 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004721/0.4007, allocations: 2.703 MB / 0.5766 GB, free: 10.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.403, allocations: 1.465 MB / 0.578 GB, free: 9.086 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.405, allocations: 1.274 MB / 0.5793 GB, free: 7.809 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.4074, allocations: 1.444 MB / 0.5807 GB, free: 6.359 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006405/0.408, allocations: 268 kB / 0.581 GB, free: 6.098 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007906/0.4159, allocations: 2.73 MB / 0.5836 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008989/0.4168, allocations: 0.6076 MB / 0.5842 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.4186, allocations: 1.272 MB / 0.5855 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.4308, allocations: 5.716 MB / 0.591 GB, free: 11.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4308, allocations: 0 / 0.591 GB, free: 11.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4308, allocations: 0 / 0.591 GB, free: 11.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.994e-05/0.4309, allocations: 0 / 0.591 GB, free: 11.74 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.006919/0.4378, allocations: 3.039 MB / 0.594 GB, free: 8.629 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4379, allocations: 8.031 kB / 0.594 GB, free: 8.621 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004575/0.4383, allocations: 304.1 kB / 0.5943 GB, free: 8.312 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002264/0.4406, allocations: 0.5103 MB / 0.5948 GB, free: 7.801 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.4432, allocations: 1.291 MB / 0.5961 GB, free: 6.461 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002463/0.4435, allocations: 231.8 kB / 0.5963 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005541/0.444, allocations: 216 kB / 0.5965 GB, free: 6.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00553/0.4495, allocations: 2.7 MB / 0.5991 GB, free: 3.195 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-05/0.4496, allocations: 11.94 kB / 0.5991 GB, free: 3.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003132/0.4499, allocations: 84 kB / 0.5992 GB, free: 3.102 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.45, allocations: 56 kB / 0.5993 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00615/0.4561, allocations: 3.172 MB / 0.6024 GB, free: 15.87 MB / 462.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.01803/0.4741, allocations: 9.317 MB / 0.6115 GB, free: 6.199 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/0.4773, allocations: 1.759 MB / 0.6132 GB, free: 4.348 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.479, allocations: 0.8335 MB / 0.614 GB, free: 3.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.4926, allocations: 7.509 MB / 0.6213 GB, free: 11.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/0.4927, allocations: 47.56 kB / 0.6214 GB, free: 11.19 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001273/0.4939, allocations: 234.6 kB / 0.6216 GB, free: 10.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 7.644e-06/0.494, allocations: 0 / 0.6216 GB, free: 10.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.04071/0.5347, allocations: 9.535 MB / 0.6309 GB, free: 1.312 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.5348, allocations: 128.1 kB / 0.631 GB, free: 1.16 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002454/0.5372, allocations: 1.345 MB / 0.6323 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003919/0.5376, allocations: 53.7 kB / 0.6324 GB, free: 15.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009497/0.5386, allocations: 1.077 MB / 0.6334 GB, free: 14.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008036/0.5394, allocations: 0.5927 MB / 0.634 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.5404, allocations: 476.6 kB / 0.6345 GB, free: 13.58 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5405, allocations: 305.1 kB / 0.6348 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.5424, allocations: 0.8441 MB / 0.6356 GB, free: 12.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.5451, allocations: 1.712 MB / 0.6373 GB, free: 10.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004952/0.5501, allocations: 2.701 MB / 0.6399 GB, free: 7.215 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.979e-05/0.5501, allocations: 8 kB / 0.6399 GB, free: 7.207 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.0105/0.5606, allocations: 3.465 MB / 0.6433 GB, free: 3.719 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.5606, allocations: 19.94 kB / 0.6433 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.592e-05/0.5607, allocations: 28 kB / 0.6433 GB, free: 3.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005752/0.5664, allocations: 1.155 MB / 0.6445 GB, free: 2.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002078/0.5685, allocations: 0.5109 MB / 0.645 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/0.5805, allocations: 7.633 MB / 0.6524 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/0.5829, allocations: 103.8 kB / 0.6525 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005855/0.5835, allocations: 140 kB / 0.6527 GB, free: 9.676 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.001455/0.585, allocations: 456.9 kB / 0.6531 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007144/0.5857, allocations: 166.9 kB / 0.6533 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009387/0.5951, allocations: 2.835 MB / 0.656 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.983e-05/0.5951, allocations: 16 kB / 0.656 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.779e-05/0.5951, allocations: 12 kB / 0.656 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.928e-05/0.5952, allocations: 11.95 kB / 0.6561 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.6089, allocations: 4.845 MB / 0.6608 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-05/0.6089, allocations: 7.984 kB / 0.6608 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.6102, allocations: 259.6 kB / 0.661 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005326/0.6156, allocations: 1.033 MB / 0.6621 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003538/0.6159, allocations: 63.95 kB / 0.6621 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/0.626, allocations: 6.93 MB / 0.6689 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.626, allocations: 288 / 0.6689 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009965/0.636, allocations: 3.662 MB / 0.6725 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005212/0.6365, allocations: 228 kB / 0.6727 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004473/0.6369, allocations: 35.94 kB / 0.6727 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.6382, allocations: 43.92 kB / 0.6728 GB, free: 4.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004595/0.6387, allocations: 149 kB / 0.6729 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002231/0.6389, allocations: 71.95 kB / 0.673 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001459/0.6404, allocations: 0.8843 MB / 0.6738 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6404, allocations: 0 / 0.6738 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004214/0.6446, allocations: 1.111 MB / 0.6749 GB, free: 2.211 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.0132/0.6578, allocations: 5.269 MB / 0.6801 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006244/0.664, allocations: 2.655 MB / 0.6826 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6641, allocations: 8.062 kB / 0.6827 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003039/0.6671, allocations: 1.391 MB / 0.684 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.6693, allocations: 277.1 kB / 0.6843 GB, free: 8.43 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03855/0.7078, allocations: 17.19 MB / 0.7011 GB, free: 6.082 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/0.7096, allocations: 1.399 MB / 0.7024 GB, free: 4.648 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001579/0.7112, allocations: 391.4 kB / 0.7028 GB, free: 4.277 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/0.7126, allocations: 0.878 MB / 0.7037 GB, free: 3.398 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/0.7126, allocations: 0 / 0.7037 GB, free: 3.398 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3048/1.017, allocations: 57.79 MB / 0.7601 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.29/30.31, allocations: 2.562 kB / 0.7601 GB, free: 164.5 MB / 0.5606 GB " [Timeout remaining time 630] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 33.1023163208738] Failed to read output from testmodel.py, exit status != 0: 30.441409445134923 30.448636088 30.015755529 Calling exit ...