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.001307/0.001307, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001425/0.001425, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.358/1.358, allocations: 230.6 MB / 256 MB, free: 8.039 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.1269/0.1269, allocations: 23.89 MB / 336.3 MB, free: 11.29 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.001948/0.001948, allocations: 67.89 kB / 471.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2724, allocations: 59.88 MB / 0.5187 GB, free: 9.57 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.03942/0.3118, allocations: 30.96 MB / 0.5489 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0308/0.3426, allocations: 25.07 MB / 0.5734 GB, free: 2.047 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.3443, allocations: 35.75 kB / 0.5734 GB, free: 2.012 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.3461, allocations: 0.6062 MB / 0.574 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.3515, allocations: 1.893 MB / 0.5758 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008905/0.3604, allocations: 3.476 MB / 0.5792 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003945/0.3644, allocations: 2.707 MB / 0.5819 GB, free: 9.305 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.3663, allocations: 1.426 MB / 0.5833 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.368, allocations: 1.27 MB / 0.5845 GB, free: 6.559 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002165/0.3701, allocations: 1.452 MB / 0.5859 GB, free: 5.102 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005201/0.3706, allocations: 260 kB / 0.5862 GB, free: 4.848 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00738/0.378, allocations: 2.73 MB / 0.5889 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008077/0.3788, allocations: 0.6076 MB / 0.5894 GB, free: 1.504 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.3804, allocations: 1.272 MB / 0.5907 GB, free: 232 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01085/0.3912, allocations: 5.716 MB / 0.5963 GB, free: 10.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3912, allocations: 0 / 0.5963 GB, free: 10.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3912, allocations: 4 kB / 0.5963 GB, free: 10.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.287e-05/0.3913, allocations: 0 / 0.5963 GB, free: 10.48 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.005931/0.3972, allocations: 2.956 MB / 0.5992 GB, free: 7.477 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3973, allocations: 12.03 kB / 0.5992 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003825/0.3976, allocations: 300.1 kB / 0.5995 GB, free: 7.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/0.3997, allocations: 0.5142 MB / 0.6 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/0.4022, allocations: 1.227 MB / 0.6012 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.4024, allocations: 275.2 kB / 0.6014 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004294/0.4028, allocations: 223.9 kB / 0.6016 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004605/0.4074, allocations: 2.708 MB / 0.6043 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/0.4075, allocations: 7.938 kB / 0.6043 GB, free: 2.035 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.4077, allocations: 84 kB / 0.6044 GB, free: 1.953 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.561e-05/0.4077, allocations: 56 kB / 0.6044 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.4129, allocations: 3.191 MB / 0.6075 GB, free: 14.7 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.01556/0.4285, allocations: 9.232 MB / 0.6166 GB, free: 5.113 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/0.4312, allocations: 1.462 MB / 0.618 GB, free: 3.633 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.4327, allocations: 0.829 MB / 0.6188 GB, free: 2.797 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009901/0.4426, allocations: 4.599 MB / 0.6233 GB, free: 14.17 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.4427, allocations: 59.48 kB / 0.6233 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001035/0.4437, allocations: 234.7 kB / 0.6236 GB, free: 13.87 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 3.808e-06/0.4437, allocations: 0 / 0.6236 GB, free: 13.87 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03657/0.4803, allocations: 9.31 MB / 0.6327 GB, free: 4.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.964e-05/0.4804, allocations: 120.1 kB / 0.6328 GB, free: 4.359 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/0.4821, allocations: 1.353 MB / 0.6341 GB, free: 2.988 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.4823, allocations: 57.7 kB / 0.6341 GB, free: 2.926 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007738/0.4831, allocations: 1.085 MB / 0.6352 GB, free: 1.828 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005853/0.4837, allocations: 0.5888 MB / 0.6358 GB, free: 1.234 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000693/0.4844, allocations: 472.6 kB / 0.6362 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4845, allocations: 305.1 kB / 0.6365 GB, free: 476 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.486, allocations: 0.852 MB / 0.6374 GB, free: 15.61 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00221/0.4882, allocations: 1.72 MB / 0.639 GB, free: 13.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003931/0.4921, allocations: 2.701 MB / 0.6417 GB, free: 10.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.198e-05/0.4922, allocations: 12 kB / 0.6417 GB, free: 10.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008969/0.5011, allocations: 3.472 MB / 0.6451 GB, free: 6.875 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.5012, allocations: 23.94 kB / 0.6451 GB, free: 6.852 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-05/0.5012, allocations: 28 kB / 0.6451 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005466/0.5067, allocations: 1.17 MB / 0.6463 GB, free: 5.641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001899/0.5086, allocations: 0.507 MB / 0.6468 GB, free: 5.133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.5192, allocations: 7.327 MB / 0.6539 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.521, allocations: 99.84 kB / 0.654 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/0.5213, allocations: 152 kB / 0.6542 GB, free: 13.19 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.0009219/0.5223, allocations: 440.9 kB / 0.6546 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004128/0.5227, allocations: 166.9 kB / 0.6547 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008241/0.5309, allocations: 2.845 MB / 0.6575 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.5309, allocations: 16 kB / 0.6575 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.531, allocations: 4 kB / 0.6575 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/0.531, allocations: 7.969 kB / 0.6575 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.5434, allocations: 4.821 MB / 0.6622 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.5434, allocations: 4 kB / 0.6623 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.5446, allocations: 259.6 kB / 0.6625 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005015/0.5496, allocations: 1.038 MB / 0.6635 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002342/0.5498, allocations: 63.95 kB / 0.6636 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008873/0.5587, allocations: 6.614 MB / 0.67 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.5587, allocations: 4.031 kB / 0.67 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009064/0.5678, allocations: 3.666 MB / 0.6736 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.5682, allocations: 146.9 kB / 0.6738 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003185/0.5685, allocations: 32 kB / 0.6738 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.5696, allocations: 51.86 kB / 0.6738 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003469/0.5699, allocations: 153 kB / 0.674 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.5701, allocations: 75.95 kB / 0.6741 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001202/0.5713, allocations: 0.8882 MB / 0.6749 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.5713, allocations: 0 / 0.6749 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003636/0.5749, allocations: 1.114 MB / 0.676 GB, free: 6.242 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.01153/0.5864, allocations: 5.262 MB / 0.6811 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005403/0.5919, allocations: 2.583 MB / 0.6837 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.5919, allocations: 0 / 0.6837 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.5945, allocations: 1.327 MB / 0.685 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.5962, allocations: 280.4 kB / 0.6852 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03386/0.6301, allocations: 17.23 MB / 0.7021 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.6312, allocations: 1.395 MB / 0.7034 GB, free: 8.816 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001344/0.6326, allocations: 389.7 kB / 0.7038 GB, free: 8.445 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/0.6338, allocations: 0.8819 MB / 0.7047 GB, free: 7.562 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/0.6338, allocations: 4 kB / 0.7047 GB, free: 7.559 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2959/0.9297, allocations: 59.72 MB / 0.763 GB, free: 164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.61/31.54, allocations: 6.406 kB / 0.763 GB, free: 164 MB / 0.5606 GB " [Timeout remaining time 628] (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: 34.1416951680003] Failed to read output from testmodel.py, exit status != 0: 31.69291488799354 31.709275544 31.314539649 Calling exit ...