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.001456/0.001456, 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.001496/0.001496, 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.35/1.35, allocations: 230.6 MB / 256 MB, free: 7.797 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.1274/0.1274, allocations: 23.88 MB / 336.3 MB, free: 10.94 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.0019/0.0019, allocations: 64.19 kB / 471.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2681, allocations: 59.88 MB / 0.5185 GB, free: 9.566 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.07066/0.3388, allocations: 29.78 MB / 0.5476 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02916/0.3679, allocations: 21.97 MB / 0.5691 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.3695, allocations: 31.75 kB / 0.5691 GB, free: 6.059 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.371, allocations: 0.559 MB / 0.5697 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005102/0.3761, allocations: 1.843 MB / 0.5715 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00918/0.3853, allocations: 3.484 MB / 0.5749 GB, free: 160 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.3891, allocations: 2.699 MB / 0.5775 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.3909, allocations: 1.442 MB / 0.5789 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.3923, allocations: 1.274 MB / 0.5801 GB, free: 10.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.3942, allocations: 1.456 MB / 0.5816 GB, free: 9.215 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004191/0.3946, allocations: 260 kB / 0.5818 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005891/0.4005, allocations: 2.625 MB / 0.5844 GB, free: 6.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000569/0.4011, allocations: 0.6115 MB / 0.585 GB, free: 5.719 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.4022, allocations: 1.07 MB / 0.586 GB, free: 4.645 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009499/0.4117, allocations: 5.7 MB / 0.5916 GB, free: 14.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4117, allocations: 4 kB / 0.5916 GB, free: 14.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.4117, allocations: 0 / 0.5916 GB, free: 14.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.996e-05/0.4117, allocations: 0 / 0.5916 GB, free: 14.92 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.005214/0.417, allocations: 2.952 MB / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.417, allocations: 8.031 kB / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003556/0.4174, allocations: 304.1 kB / 0.5948 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.4193, allocations: 0.5141 MB / 0.5953 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.4215, allocations: 1.223 MB / 0.5965 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.4217, allocations: 279.2 kB / 0.5967 GB, free: 9.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003693/0.4221, allocations: 220 kB / 0.5969 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004183/0.4263, allocations: 2.737 MB / 0.5996 GB, free: 6.449 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.4263, allocations: 4 kB / 0.5996 GB, free: 6.445 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/0.4265, allocations: 88 kB / 0.5997 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.667e-05/0.4266, allocations: 52 kB / 0.5998 GB, free: 6.309 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004799/0.4314, allocations: 3.164 MB / 0.6028 GB, free: 3.141 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.01316/0.4446, allocations: 7.997 MB / 0.6107 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.4469, allocations: 1.463 MB / 0.6121 GB, free: 9.473 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.4482, allocations: 0.8224 MB / 0.6129 GB, free: 8.641 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009098/0.4573, allocations: 4.358 MB / 0.6171 GB, free: 4.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.4573, allocations: 51.5 kB / 0.6172 GB, free: 4.191 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009049/0.4582, allocations: 230.7 kB / 0.6174 GB, free: 3.965 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 3.156e-06/0.4582, allocations: 0 / 0.6174 GB, free: 3.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03222/0.4904, allocations: 9.322 MB / 0.6265 GB, free: 10.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.4905, allocations: 120.1 kB / 0.6266 GB, free: 10.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.4922, allocations: 1.407 MB / 0.628 GB, free: 9.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.4923, allocations: 53.7 kB / 0.6281 GB, free: 8.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007633/0.4931, allocations: 1.085 MB / 0.6291 GB, free: 7.863 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005391/0.4936, allocations: 0.5928 MB / 0.6297 GB, free: 7.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006668/0.4943, allocations: 472.6 kB / 0.6301 GB, free: 6.797 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4944, allocations: 305.1 kB / 0.6304 GB, free: 6.496 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4958, allocations: 0.852 MB / 0.6313 GB, free: 5.641 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/0.4979, allocations: 1.72 MB / 0.6329 GB, free: 3.516 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00369/0.5016, allocations: 2.705 MB / 0.6356 GB, free: 420 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-05/0.5016, allocations: 8 kB / 0.6356 GB, free: 412 kB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008147/0.5097, allocations: 3.48 MB / 0.639 GB, free: 12.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.5098, allocations: 19.94 kB / 0.639 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.694e-05/0.5098, allocations: 32 kB / 0.639 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004845/0.5147, allocations: 1.155 MB / 0.6402 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5164, allocations: 0.5109 MB / 0.6407 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009635/0.5261, allocations: 7.26 MB / 0.6478 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.5277, allocations: 107.9 kB / 0.6479 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002699/0.528, allocations: 140 kB / 0.648 GB, free: 3.293 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.0008425/0.5288, allocations: 448.3 kB / 0.6484 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/0.5292, allocations: 170.9 kB / 0.6486 GB, free: 2.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007484/0.5367, allocations: 2.842 MB / 0.6514 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/0.5367, allocations: 20 kB / 0.6514 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.5367, allocations: 3.984 kB / 0.6514 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.5368, allocations: 12.08 kB / 0.6514 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.5476, allocations: 4.567 MB / 0.6559 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.5476, allocations: 4 kB / 0.6559 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.5487, allocations: 255.9 kB / 0.6561 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/0.553, allocations: 1.034 MB / 0.6571 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/0.5532, allocations: 67.95 kB / 0.6572 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008251/0.5614, allocations: 6.554 MB / 0.6636 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.5614, allocations: 7.938 kB / 0.6636 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008025/0.5695, allocations: 3.666 MB / 0.6672 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.5698, allocations: 146.9 kB / 0.6673 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/0.5701, allocations: 35.98 kB / 0.6673 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008822/0.5709, allocations: 47.92 kB / 0.6674 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.5713, allocations: 157 kB / 0.6675 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.5714, allocations: 71.95 kB / 0.6676 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001116/0.5725, allocations: 0.8882 MB / 0.6685 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5725, allocations: 0 / 0.6685 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003036/0.5756, allocations: 1.114 MB / 0.6696 GB, free: 12.64 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.01015/0.5857, allocations: 5.269 MB / 0.6747 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004893/0.5906, allocations: 2.577 MB / 0.6772 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5906, allocations: 0 / 0.6772 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002415/0.593, allocations: 1.321 MB / 0.6785 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.5946, allocations: 282.1 kB / 0.6788 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03114/0.6257, allocations: 17.22 MB / 0.6956 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009003/0.6266, allocations: 0.8191 MB / 0.6964 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001275/0.6279, allocations: 389.5 kB / 0.6968 GB, free: 15.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/0.6291, allocations: 0.8819 MB / 0.6976 GB, free: 14.54 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/0.6291, allocations: 4 kB / 0.6976 GB, free: 14.54 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/0.9378, allocations: 59.48 MB / 0.7557 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.69, allocations: 2.812 kB / 0.7557 GB, free: 170.5 MB / 0.5606 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.2685850780108] Failed to read output from testmodel.py, exit status != 0: 15.838689089985564 15.848859361 15.434989666 Calling exit ...