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.00168/0.00168, 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.002112/0.002112, allocations: 215.7 kB / 22.24 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.384/1.384, allocations: 230.6 MB / 256 MB, free: 7.816 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.1395/0.1395, allocations: 23.92 MB / 336.3 MB, free: 10.95 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.003261/0.003261, allocations: 63.91 kB / 471.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3633, allocations: 59.88 MB / 0.5186 GB, free: 9.465 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.075/0.4383, allocations: 29.77 MB / 0.5477 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03102/0.4693, allocations: 21.98 MB / 0.5692 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0024/0.4717, allocations: 31.75 kB / 0.5692 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00181/0.4736, allocations: 0.5541 MB / 0.5697 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006629/0.4802, allocations: 1.843 MB / 0.5715 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01024/0.4904, allocations: 3.484 MB / 0.5749 GB, free: 160 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004221/0.4947, allocations: 2.699 MB / 0.5776 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001965/0.4966, allocations: 1.438 MB / 0.579 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.4982, allocations: 1.282 MB / 0.5802 GB, free: 10.67 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00187/0.5, allocations: 1.448 MB / 0.5816 GB, free: 9.219 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003875/0.5004, allocations: 264 kB / 0.5819 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006826/0.5072, allocations: 2.625 MB / 0.5844 GB, free: 6.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006484/0.5079, allocations: 0.6075 MB / 0.585 GB, free: 5.723 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.5091, allocations: 1.07 MB / 0.5861 GB, free: 4.648 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.5202, allocations: 5.7 MB / 0.5917 GB, free: 14.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.5202, allocations: 0 / 0.5917 GB, free: 14.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5202, allocations: 4 kB / 0.5917 GB, free: 14.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.179e-05/0.5202, allocations: 0 / 0.5917 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.00546/0.5257, allocations: 2.948 MB / 0.5945 GB, free: 11.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.5257, allocations: 16.03 kB / 0.5946 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003615/0.5261, allocations: 296.1 kB / 0.5948 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001971/0.528, allocations: 0.518 MB / 0.5953 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002266/0.5303, allocations: 1.227 MB / 0.5965 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.5305, allocations: 275.2 kB / 0.5968 GB, free: 9.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.5309, allocations: 220 kB / 0.597 GB, free: 9.309 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004226/0.5351, allocations: 2.733 MB / 0.5997 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/0.5352, allocations: 0 / 0.5997 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001978/0.5354, allocations: 88 kB / 0.5998 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.572e-05/0.5354, allocations: 56 kB / 0.5998 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004875/0.5403, allocations: 3.156 MB / 0.6029 GB, free: 3.156 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.01333/0.5536, allocations: 8.009 MB / 0.6107 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.5561, allocations: 1.459 MB / 0.6121 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.5573, allocations: 0.8301 MB / 0.613 GB, free: 8.641 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009501/0.5668, allocations: 4.346 MB / 0.6172 GB, free: 4.262 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.5669, allocations: 47.56 kB / 0.6172 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009183/0.5678, allocations: 250.6 kB / 0.6175 GB, free: 3.961 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 3.005e-06/0.5678, allocations: 0 / 0.6175 GB, free: 3.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03612/0.6039, allocations: 9.31 MB / 0.6266 GB, free: 10.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.604, allocations: 120.1 kB / 0.6267 GB, free: 10.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/0.6059, allocations: 1.407 MB / 0.6281 GB, free: 9.027 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.606, allocations: 57.7 kB / 0.6281 GB, free: 8.965 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009166/0.6069, allocations: 1.081 MB / 0.6292 GB, free: 7.871 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005232/0.6074, allocations: 0.5927 MB / 0.6298 GB, free: 7.273 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006771/0.6081, allocations: 472.6 kB / 0.6302 GB, free: 6.805 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6083, allocations: 305.1 kB / 0.6305 GB, free: 6.504 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.6097, allocations: 0.8637 MB / 0.6313 GB, free: 5.637 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.6119, allocations: 1.712 MB / 0.633 GB, free: 3.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003843/0.6158, allocations: 2.705 MB / 0.6357 GB, free: 424 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/0.6158, allocations: 8 kB / 0.6357 GB, free: 416 kB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00832/0.6241, allocations: 3.477 MB / 0.6391 GB, free: 12.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.6241, allocations: 19.94 kB / 0.6391 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/0.6242, allocations: 28 kB / 0.6391 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/0.629, allocations: 1.166 MB / 0.6402 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/0.6308, allocations: 0.5148 MB / 0.6407 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.6409, allocations: 7.252 MB / 0.6478 GB, free: 3.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.6425, allocations: 99.91 kB / 0.6479 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/0.6428, allocations: 144 kB / 0.6481 GB, free: 3.305 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.0008795/0.6436, allocations: 452.9 kB / 0.6485 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.644, allocations: 166.9 kB / 0.6486 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00827/0.6523, allocations: 2.839 MB / 0.6514 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.412e-05/0.6523, allocations: 20 kB / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.6523, allocations: 0 / 0.6514 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-05/0.6523, allocations: 16.08 kB / 0.6515 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.6667, allocations: 4.567 MB / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/0.6667, allocations: 4 kB / 0.6559 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.6684, allocations: 251.7 kB / 0.6562 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006156/0.6746, allocations: 1.049 MB / 0.6572 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002852/0.6748, allocations: 63.97 kB / 0.6572 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/0.687, allocations: 6.553 MB / 0.6636 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.6871, allocations: 7.938 kB / 0.6637 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009375/0.6964, allocations: 3.67 MB / 0.6672 GB, free: 15.1 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004537/0.6969, allocations: 150.9 kB / 0.6674 GB, free: 14.95 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.6971, allocations: 28 kB / 0.6674 GB, free: 14.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009058/0.698, allocations: 47.92 kB / 0.6675 GB, free: 14.88 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003411/0.6983, allocations: 149 kB / 0.6676 GB, free: 14.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.6985, allocations: 75.95 kB / 0.6677 GB, free: 14.66 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001174/0.6997, allocations: 0.8959 MB / 0.6685 GB, free: 13.76 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/0.6997, allocations: 0 / 0.6685 GB, free: 13.76 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.003536/0.7032, allocations: 1.114 MB / 0.6696 GB, free: 12.64 MB / 0.5138 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.01102/0.7142, allocations: 5.269 MB / 0.6748 GB, free: 7.305 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.005319/0.7196, allocations: 2.575 MB / 0.6773 GB, free: 4.695 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.7196, allocations: 0 / 0.6773 GB, free: 4.695 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.722, allocations: 1.328 MB / 0.6786 GB, free: 3.328 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.7237, allocations: 269.3 kB / 0.6788 GB, free: 3.062 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03297/0.7567, allocations: 17.24 MB / 0.6957 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009718/0.7577, allocations: 0.8191 MB / 0.6965 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0013/0.759, allocations: 392.4 kB / 0.6969 GB, free: 15.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/0.7602, allocations: 0.878 MB / 0.6977 GB, free: 14.54 MB / 0.545 GB Notification: Performance of SimCode: time 9.11e-07/0.7602, allocations: 0 / 0.6977 GB, free: 14.54 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3232/1.083, allocations: 59.48 MB / 0.7558 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.46, allocations: 3.75 kB / 0.7558 GB, free: 170.4 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: 19.189924471982522] Failed to read output from testmodel.py, exit status != 0: 16.61715758399805 16.629438132 16.106332325 Calling exit ...