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.001796/0.001796, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002191/0.002191, allocations: 212.2 kB / 22.24 MB, free: 5.258 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.785 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.1521/0.1521, allocations: 24 MB / 336.4 MB, free: 10.82 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.002328/0.002328, allocations: 71.89 kB / 471.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3435, allocations: 59.88 MB / 0.5187 GB, free: 9.508 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.07683/0.4203, allocations: 29.86 MB / 0.5479 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03108/0.4514, allocations: 21.97 MB / 0.5694 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.4533, allocations: 35.75 kB / 0.5694 GB, free: 5.809 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.4551, allocations: 0.5542 MB / 0.5699 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005763/0.4609, allocations: 1.843 MB / 0.5717 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009694/0.4706, allocations: 3.484 MB / 0.5751 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004135/0.4747, allocations: 2.703 MB / 0.5778 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.4768, allocations: 1.399 MB / 0.5791 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001777/0.4785, allocations: 1.278 MB / 0.5804 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002031/0.4806, allocations: 1.276 MB / 0.5816 GB, free: 9.164 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005567/0.4811, allocations: 268 kB / 0.5819 GB, free: 8.902 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006786/0.4879, allocations: 2.57 MB / 0.5844 GB, free: 6.328 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000861/0.4888, allocations: 0.6076 MB / 0.585 GB, free: 5.719 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00148/0.4903, allocations: 1.07 MB / 0.586 GB, free: 4.645 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01203/0.5023, allocations: 5.696 MB / 0.5916 GB, free: 14.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.5023, allocations: 3.938 kB / 0.5916 GB, free: 14.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5023, allocations: 0 / 0.5916 GB, free: 14.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.607e-05/0.5024, allocations: 3.938 kB / 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.006079/0.5084, allocations: 2.952 MB / 0.5945 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.5085, allocations: 12.03 kB / 0.5945 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003772/0.5089, allocations: 300.1 kB / 0.5948 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002106/0.511, allocations: 0.5142 MB / 0.5953 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002577/0.5135, allocations: 1.219 MB / 0.5965 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.5138, allocations: 279.2 kB / 0.5968 GB, free: 9.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.5142, allocations: 216 kB / 0.597 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004746/0.519, allocations: 2.741 MB / 0.5996 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.163e-05/0.519, allocations: 7.938 kB / 0.5996 GB, free: 6.445 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.5192, allocations: 88 kB / 0.5997 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.908e-05/0.5193, allocations: 52 kB / 0.5998 GB, free: 6.309 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005322/0.5246, allocations: 3.156 MB / 0.6029 GB, free: 3.148 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.01489/0.5395, allocations: 7.997 MB / 0.6107 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/0.5421, allocations: 1.455 MB / 0.6121 GB, free: 9.492 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.5435, allocations: 0.8263 MB / 0.6129 GB, free: 8.656 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009912/0.5534, allocations: 4.357 MB / 0.6171 GB, free: 4.266 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.024e-05/0.5534, allocations: 47.56 kB / 0.6172 GB, free: 4.211 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009883/0.5544, allocations: 234.7 kB / 0.6174 GB, free: 3.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.248e-06/0.5544, allocations: 3.938 kB / 0.6174 GB, free: 3.977 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03571/0.5901, allocations: 9.314 MB / 0.6265 GB, free: 10.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.837e-05/0.5902, allocations: 124.1 kB / 0.6266 GB, free: 10.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.5921, allocations: 1.407 MB / 0.628 GB, free: 9.031 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002902/0.5924, allocations: 49.7 kB / 0.6281 GB, free: 8.977 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009055/0.5933, allocations: 1.092 MB / 0.6291 GB, free: 7.871 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007322/0.594, allocations: 0.5888 MB / 0.6297 GB, free: 7.277 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007597/0.5948, allocations: 472.6 kB / 0.6302 GB, free: 6.809 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.5949, allocations: 313.1 kB / 0.6304 GB, free: 6.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.5965, allocations: 0.8481 MB / 0.6313 GB, free: 5.648 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/0.5989, allocations: 1.716 MB / 0.633 GB, free: 3.527 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004074/0.603, allocations: 2.705 MB / 0.6356 GB, free: 432 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/0.603, allocations: 8 kB / 0.6356 GB, free: 424 kB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008952/0.612, allocations: 3.48 MB / 0.639 GB, free: 12.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.612, allocations: 19.94 kB / 0.639 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-05/0.612, allocations: 28 kB / 0.639 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005479/0.6175, allocations: 1.155 MB / 0.6402 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/0.6195, allocations: 0.5109 MB / 0.6407 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.6305, allocations: 7.266 MB / 0.6478 GB, free: 3.551 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.6325, allocations: 107.9 kB / 0.6479 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003729/0.6329, allocations: 140 kB / 0.648 GB, free: 3.309 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.001164/0.634, allocations: 452.9 kB / 0.6484 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005655/0.6346, allocations: 163.1 kB / 0.6486 GB, free: 2.695 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008066/0.6427, allocations: 2.843 MB / 0.6514 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.6427, allocations: 16 kB / 0.6514 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.6427, allocations: 11.98 kB / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.6427, allocations: 7.969 kB / 0.6514 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.6544, allocations: 4.575 MB / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.6544, allocations: 0 / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.6555, allocations: 259.6 kB / 0.6561 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004841/0.6604, allocations: 1.034 MB / 0.6571 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.6606, allocations: 63.95 kB / 0.6572 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0091/0.6697, allocations: 6.557 MB / 0.6636 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.6697, allocations: 0 / 0.6636 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008971/0.6786, allocations: 3.674 MB / 0.6672 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005187/0.6792, allocations: 147 kB / 0.6673 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.6794, allocations: 39.98 kB / 0.6674 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6804, allocations: 43.92 kB / 0.6674 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.6808, allocations: 157 kB / 0.6676 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.681, allocations: 71.95 kB / 0.6676 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001225/0.6822, allocations: 0.896 MB / 0.6685 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6822, allocations: 0 / 0.6685 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003435/0.6856, allocations: 1.103 MB / 0.6696 GB, free: 12.65 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.01164/0.6973, allocations: 5.262 MB / 0.6747 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00592/0.7032, allocations: 2.582 MB / 0.6772 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.7032, allocations: 0 / 0.6772 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003124/0.7063, allocations: 1.316 MB / 0.6785 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001889/0.7082, allocations: 290.1 kB / 0.6788 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03701/0.7452, allocations: 17.23 MB / 0.6956 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009886/0.7462, allocations: 0.8191 MB / 0.6964 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001438/0.7476, allocations: 389.3 kB / 0.6968 GB, free: 15.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/0.7489, allocations: 0.8819 MB / 0.6977 GB, free: 14.55 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/0.7489, allocations: 0 / 0.6977 GB, free: 14.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3763/1.125, allocations: 58.77 MB / 0.755 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.98/17.11, allocations: 8.734 kB / 0.7551 GB, free: 170.5 MB / 0.5606 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 20.02665930474177] Failed to read output from testmodel.py, exit status != 0: 17.256949964445084 17.266961732 16.762315801 Calling exit ...